Word wrap: Difference between revisions

m
→‎version 1: added a link to the LINESIZE.REX program.
m (→‎version 1: added a link to the LINESIZE.REX program.)
Line 1,909:
_=x /*handle any word overflow. */
return /*go back and keep truckin'. */</lang>
This REXX program makes use of &nbsp; '''LINESIZE''' &nbsp; REXX program (or BIF) which is used to determine the screen width (or linesize) of the terminal (console).
The input file:
<br>The &nbsp; '''LINESIZE.REX''' &nbsp; REXX program is included here ──► [[LINESIZE.REX]].<br>
<pre style="height:30ex;overflow:scroll">
 
The '''input file''':
<pre style="height:30ex;overflow:scroll50ex">
────────── Computer programming laws ──────────
The Primal Scenario -or- Basic Datum of Experience:
Line 2,001 ⟶ 2,004:
∙ Parameters are variables travelling under an assumed name.
</pre>
Output'''output''' when specifying: &nbsp; <tt> , 155 </tt>
<pre style="height:15ex;overflow:scroll40ex">
────────── Computer programming laws ────────── The Primal Scenario -or- Basic Datum of Experience: ∙ Systems in general work poorly or not at all. ∙
Nothing complicated works. ∙ Complicated systems seldom exceed 5% efficiency. ∙ There is always a fly in the ointment. The Fundamental Theorem: ∙ New
Line 2,040 ⟶ 2,043:
</pre>
Output when specifying: <tt> , 77 </tt>
<pre style="height:15ex;overflow:scroll40ex">
────────── Computer programming laws ────────── The Primal Scenario -or-
Basic Datum of Experience: ∙ Systems in general work poorly or not at all. ∙
Line 2,114 ⟶ 2,117:
</pre>
Output [justified] when specifying: <tt> , 70 both </tt>
<pre style="height:15ex;overflow:scroll40ex">
────────── Computer programming laws ────────── The Primal Scenario -or-
Basic Datum of Experience: ∙ Systems in general work poorly or not at all. ∙