Terminal control/Dimensions: Difference between revisions

Content added Content deleted
(Added BBC BASIC)
(→‎{{header|REXX}}: added ''versions'' for the two REXX examples, expanded the comments. -- ~~~~)
Line 253: Line 253:


=={{header|REXX}}==
=={{header|REXX}}==
===using TPUT under Linux/Unix===

{{works with|brexx}}
{{works with|brexx}}
{{works with|regina}}
{{works with|regina}}
Line 267: Line 267:
say 'and has' height 'lines'
say 'and has' height 'lines'
</lang>
</lang>

Older REXX interpretors (such as all the IBM mainframe REXX interpretors, PC/REXX), and R4 support the
===using LINESIZE bif===
<br>LINESIZE built-in function which returns the screen's width.
Most (classic) REXX interpreters (and some others) such as
<br>It's syntax is:
* CMS REXX
<lang rexx>
* TSO REXX
width=linesize()
* VSE REXX
</lang>
* IBM REXX compiler
* PC/REXX
* Personal REXX
* REXX/imc
* R4
* ROO
support the '''LINESIZE''' built-in function which returns the (terminal) screen's width.
<br><br>A sample usage of the '''linesize''' bif is:
<lang rexx>width=linesize()</lang>


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