user input using nroff/troff
Brad Appleton
brad at SSD.CSD.HARRIS.COM
Wed Jul 25 23:42:47 AEST 1990
Ive looked thoroughly in two sets of manuals for this and I still dont
know how to do it (or if it can be done) ...
What I want to do is have (n|t)roff prompt me for input and then assign
the input to a string, all this without having roff print the input in
the document after it reads it.
Ive noticed that I can print a prompt using the .tm request and I can
read input with .rd request, but .rd immediately inserts the text into
my document. I want a macro named input so that:
.input name prompt
will print prompt to the user, read in input from the user, and assign
the result to the string "name" (using .ds I assume).
Any hints/suggestions would be appreciated!
advTHANXance
______________________ "And miles to go before I sleep." ______________________
Brad Appleton brad at hcx1.ssd.csd.harris.com Harris Computer Systems
...!uunet!hcx1!brad Fort Lauderdale, FL USA
~~~~~~~~~~~~~~~~~~~~ Disclaimer: I said it, not my company! ~~~~~~~~~~~~~~~~~~~
More information about the Comp.unix.questions
mailing list