SCRSIZE.HEL

From Rosetta Code
Revision as of 00:03, 7 September 2017 by Thundergnat (talk | contribs) (Move to REXX library routines category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The   SCRSIZE.HEL   is the HELp documentation for the   SCRSIZE.REX   (REXX) program.

 ╔══════════════════════════════════════════════════════════════════════╗
 ║ REXX function to return the screen depth and screen width (as a REXX ║
 ║ RESULT).                                                             ║
 ║                                                                      ║
 ║ The two Environment variables   COLUMNS  and   LINES   are examined, ║
 ║ and if present,  their values are extracted and returned.            ║
 ║                                                                      ║
 ║ If the  EnvVar variables aren't defined,  the DOS command   MODE CON ║
 ║ is issued and it's output is filtered (with FIND)  and written to a  ║
 ║ temporary file, and is scanned for the lines:  Columns [:=] nn       ║
 ║                                         and:   Lines   [:=] nn       ║
 ║                                                                      ║
 ║ If the values  aren't  available  or  invalid,  a value of  zero(s)  ║
 ║ is/are returned.                                                     ║
 ║                                                                      ║
 ║ If program is running under  PC/REXX  or  R4,  this routine should   ║
 ║ never be invoked as  PC/REXX  and  R4  have their own built-in       ║
 ║ function (BIF)    SCRSIZE.                                           ║
 ║                                                                      ║
 ║ This program shouldn't be "compiled" with PC/REXX with the  /L  opt. ║
 ╚══════════════════════════════════════════════════════════════════════╝

                                      Ω