Readline interface: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: changed/added comments and whitespace, changed indentations.)
m (→‎{{header|REXX}}: added whitespace and highlighting to the REXX section header.)
Line 195: Line 195:


=={{header|REXX}}==
=={{header|REXX}}==
This REXX programs supports a REDO (re-do) with very limited editing to keep the program simple.
This REXX programs supports a '''REDO''' (re-do) with very limited editing to keep the program simple.
<br>It has a history (which can be interrogated) and some of the simple (MS) DOS commands.
<br>It has a history (which can be interrogated) and some of the simple (MS) DOS commands.
<br>The HELP (?), REDO, error checking, and abbreviations took up most of the program.
<br>The HELP (or '''?'''), REDO, error checking, and abbreviations took up most of the program.
<br>"User" commands (subroutines) are identified with a leading period (.) to make it easier to understand what's what.
<br>"User" commands (subroutines) are identified with a leading period ('''.''') to make it easier to understand what's what.
<lang rexx>/*REXX program implements a simple "readline" shell (modeled after a DOS shell). */
<lang rexx>/*REXX program implements a simple "readline" shell (modeled after a DOS shell). */
trace off /*suppress echoing of non-zero retCodes*/
trace off /*suppress echoing of non-zero retCodes*/
Line 331: Line 331:
<br>The &nbsp; '''LINESIZE.REX''' &nbsp; REXX program is included here &nbsp; ──► &nbsp; [[LINESIZE.REX]].<br>
<br>The &nbsp; '''LINESIZE.REX''' &nbsp; REXX program is included here &nbsp; ──► &nbsp; [[LINESIZE.REX]].<br>


Some older REXXes don't have a '''changestr''' BIF, so one is included here ──► [[CHANGESTR.REX]].
Some older REXXes don't have a '''changestr''' BIF, so one is included here &nbsp; ──► &nbsp; [[CHANGESTR.REX]].
<br><br>
<br><br>
'''output''' &nbsp; showing a sample session:
'''output''' &nbsp; showing a sample session: