Terminal control/Dimensions: Difference between revisions

Content added Content deleted
(→‎{{header|REXX}}: added ''versions'' for the two REXX examples, expanded the comments. -- ~~~~)
(→‎{{header|REXX}}: added a section about the '''scrsize''' bif. -- ~~~~)
Line 282: Line 282:
<br><br>A sample usage of the '''linesize''' bif is:
<br><br>A sample usage of the '''linesize''' bif is:
<lang rexx>width=linesize()</lang>
<lang rexx>width=linesize()</lang>

===using SCRSIZE===
A few classic REXX interpretors support the '''SCRSIZE''' bif:
* PC/REXX
* Personal REXX
* R4
* ROO
The '''scrsize''' bif returns two numbers:
* the screen depth
* the screen width
<lang rexx> parse value scrsize() with sd sw</lang>


=={{header|Ruby}}==
=={{header|Ruby}}==