Anonymous user
Terminal control/Dimensions: Difference between revisions
m
→{{header|REXX}}: added a link to the LINESIZE.REX program.
m (→{{header|REXX}}: added a link to the LINESIZE.REX program.) |
m (→{{header|REXX}}: added a link to the LINESIZE.REX program.) |
||
Line 432:
===LINESIZE===
The <code>LINESIZE</code> built-in function returns the (terminal) screen's width. It is supported by most (classic) REXX interpreters (and some others) such as: CMS REXX, TSO REXX, VSE REXX, the IBM REXX compiler, PC/REXX, Personal REXX, REXX/imc, R4 and ROO. A sample usage of it is:
<lang rexx>width=linesize()</lang>
<br>The '''LINESIZE.REX''' REXX program is included here ──► [[LINESIZE.REX]].
===SCRSIZE===
<code>SCRSIZE</code> is another built-in function, and returns two integers: the screen depth and the screen width. A few classic REXX interpreters support it: PC/REXX, Personal REXX, R4 and ROO.
<lang rexx> parse value scrsize() with sd sw</lang>
The above example makes use of '''SCRSIZE''' REXX program (of BIF) which is used to determine the screen size of the terminal (console).
|