Jump to content

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. &nbsp; 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. &nbsp; A sample usage of it is:
<lang rexx>width=linesize()</lang>
ThisThe REXXabove programexample makes use of &nbsp; '''LINESIZE''' &nbsp; REXX program (or BIF) which is used to determine the screen width (or linesize) of the terminal (console).
<br>The &nbsp; '''LINESIZE.REX''' &nbsp; 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. &nbsp; A few classic REXX interpreters support it: &nbsp; PC/REXX, Personal REXX, R4 and ROO.
<lang rexx> parse value scrsize() with sd sw</lang>
The above example makes use of &nbsp; '''SCRSIZE''' &nbsp; REXX program (of BIF) which is used to determine the screen size of the terminal (console).
Cookies help us deliver our services. By using our services, you agree to our use of cookies.