$T.REX: Difference between revisions

300 bytes added ,  8 years ago
m
→‎$T.REX: added/changed comments and whitespace, added more indentations.
(added whitespace, used better indentations, changed comments, add more idiomatic code, other cosmetic changes.)
m (→‎$T.REX: added/changed comments and whitespace, added more indentations.)
Line 1:
==$T.REX==
This is the   '''$T.REX'''   (REXX) program which is used by many other REXX programs to display error or informational message(s),
<br>some of the options follow)are:
:* &nbsp; in color(s) &nbsp; &nbsp; (if supported)
:* &nbsp; highlights (in color) parts (up to 8 unique parts) of the text &nbsp; &nbsp; (if supported)
:* &nbsp; write text to a file
:* &nbsp; breaks the text into multiple lines
:* &nbsp; adds indentation
:* &nbsp; justifies the text: left/right/center/justify &nbsp; (autofillauto-fill)
:* &nbsp; add blank lines before and/or after the displaying of text
:* &nbsp; boxing (around) the text
:* &nbsp; add spacing around the text inside the box
:* &nbsp; only showing specific lines of the text messages
:* &nbsp; suppressing specific lines of the text messages
:* &nbsp; translation of certain characters in the text
:* &nbsp; allowing other characters to be used for blanks
:* &nbsp; repeating a text
:* &nbsp; allows remarks in the text
:* &nbsp; writes the message, waits for a confirmation to proceed
:* &nbsp; delaying (waiting) after the text is displayed
:* &nbsp; showing a scale and/or a ruler above/below the text message(s)
:* &nbsp; supports hex/dec/bit strings
:* &nbsp; changing the case of the text
:* &nbsp; reverses the text
:* &nbsp; inverts the bits for certain characters
:* &nbsp; sounds alarm (beeps) after the text is displayed &nbsp; &nbsp; (if supported)
:* &nbsp; displays the text in reverse video (if supported)
:* &nbsp; displays the text in (big) block letters
:* &nbsp; clear the screen after or before the displaying of text
:* &nbsp; allows user-define option character, the default is &nbsp; '''.''' &nbsp; &nbsp; (period)
:* &nbsp; and many other options
 
<br>The help for the &nbsp; '''$T''' &nbsp; REXX program is included here ──► [[$T.HEL]].
 
<br>The help for the &nbsp; '''$T''' &nbsp; REXX program is included here &nbsp; ──► &nbsp; [[$T.HEL]].
<br><br>The &nbsp; '''$T''' &nbsp; REXX program makes use of &nbsp; '''$ERR''' &nbsp; REXX program which is used to display error messages (via &nbsp; '''$T''').
<br>The &nbsp; '''$ERR''' &nbsp; REXX program is included here &nbsp; ──► &nbsp; [[$ERR.REX]].
<br><br>The &nbsp; '''$T''' &nbsp; REXX program makes use of &nbsp; '''LINESIZE''' &nbsp; BIF &nbsp; which returns the terminals width (linesize).
<br>Some REXXes doendon't have a &nbsp; '''LINESIZE''' &nbsp; BIF, so one is included here &nbsp; ──► &nbsp; [[LINESIZE.HEL]].
<br><br>The &nbsp; '''$T''' &nbsp; REXX program makes use of &nbsp; '''SCRSIZE''' &nbsp; BIF which returns the terminals width (linesize) and depth.
<br>Some REXXes doendon't have a &nbsp; '''SCRSIZE''' &nbsp; BIF, so one is included here &nbsp; ──► &nbsp; [[SCRSIZE.HEL]].
<br><br>The &nbsp; '''$T''' &nbsp; REXX program makes use of &nbsp; '''DELAY''' &nbsp; BIF which delays (sleeps) for a specified amount of seconds.
<br>Some REXXes doendon't have a &nbsp; '''DELAY''' &nbsp; BIF, so one is included here &nbsp; ──► &nbsp; [[DELAY.REX]].
<br><br>The &nbsp; '''$T''' &nbsp; REXX program makes use of &nbsp; '''SOUND''' &nbsp; BIF which produces sounds via the PC speaker.
<br>Some REXXes doendon't have a &nbsp; '''SOUND''' &nbsp; BIF, so one is included here &nbsp; ──► &nbsp; [[SOUND.REX]].
<br><br>REXX programs not included are &nbsp; '''$H''' &nbsp; which shows '''help''' and other documentation.
<lang rexx>/*REXX*/ trace off /* There be many dragons below. */
Line 912 ⟶ 914:
sw: if ?.linesize=='' then ?.linesize=linesize(); return ?.linesize
syntax: !sigl=sigl; call er 13,!fid(2) !fid(3) !sigl !cal() condition('D') sourceline(!sigl)
wit: call dsay arg(1); call wr arg(1); return</lang>
 
 
 
</lang>