Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: Leisner.Henr@xerox.com (Marty) Newsgroups: comp.sys.sun Subject: using gets/printf in sunview Keywords: Software Message-ID: <3445@kalliope.rice.edu> Date: 24 May 89 12:54:49 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 27 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 8, Issue 3, message 17 of 17 I want to use a panel of buttons to interpret options in a program, which in turn run subroutines which use the traditional unix mechanisms of communications via gets and printf. I've built a tty window and did the appropriate calls to redirect stdin/out to the window. I don't want to start building state machines to monitor the input tty window. I have no problem writing to a tty window -- how do I essentially implement gets() to a tty window which actually does blocking. I'd be happy to see a program which: 1) builds a panel with one button 2) builds a tty window 3) in response to a mouse click, prompts the user for one line of input and displays it in the tty window, using stdio. I've went through the various examples in the manual and I can follow what they're doing but I can't pull this all together so all the features I want work at the same time. marty ARPA: leisner.henr@xerox.com GV: leisner.henr NS: martin leisner:wbst139:xerox UUCP: hplabs!arisia!leisner