Line drawing/leaders with nroff

Phil Ronzone phil at unisoft.UUCP
Sat Feb 18 13:23:01 AEST 1984


First line .........
You can do it recursively, appending to a string your line stuff
until it's wide enough, as in:
-----------------------------------------------------------------
.de wi
.if \w'\\*(S1'<\\n(W1 .as S1 \\$1
.if \w'\\*(S1'<\\n(W1 .wi \\$1
..
.ds S1 HELLO
.nr W1 5i
.wi ".\ "
\*(S1
-----------------------------------------------------------------
Crude, real slow, but it only takes 10 seconds to think of.



More information about the Comp.unix.wizards mailing list