Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!travis!brad From: brad@SSD.CSD.HARRIS.COM (Brad Appleton) Newsgroups: comp.unix.questions Subject: user input using nroff/troff Summary: How do I assign user input to a string? Message-ID: <494@travis.csd.harris.com> Date: 25 Jul 90 13:42:47 GMT Sender: news@travis.csd.harris.com Organization: Harris Computers Systems Division, Fort Lauderdale,FL Lines: 23 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@hcx1.ssd.csd.harris.com Harris Computer Systems ...!uunet!hcx1!brad Fort Lauderdale, FL USA ~~~~~~~~~~~~~~~~~~~~ Disclaimer: I said it, not my company! ~~~~~~~~~~~~~~~~~~~