home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / perl / 4887 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  1.0 KB

  1. Path: sparky!uunet!olivea!decwrl!concert!mcnc!aurs01!throop
  2. From: throop@aurs01.UUCP (Wayne Throop)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: X thing to get string?
  5. Summary: here's one, but I warn you, it's gross...
  6. Message-ID: <60959@aurs01.UUCP>
  7. Date: 22 Jul 92 19:49:20 GMT
  8. References: <1992Jul22.161235.18528@cs.unca.edu>
  9. Sender: news@aurs01.UUCP
  10. Organization: Alcatel Network Systems, Raleigh NC
  11. Lines: 15
  12.  
  13. > Is there an X program, preferably Motif-oriented (not that I'm that
  14. > picky :^)), that will pop a dialogue box, get a string from the user,
  15. > and print it on the stdout?
  16.  
  17. Soit'ny.  I warn you, it's pretty gross (rendered in sh, not csh):
  18.  
  19.     xterm -e sh -c 'echo -n Enter some string or other;head -1 1>&3' 3>&1
  20. or
  21.     xterm -title 'Enter some string or other' -e sh -c 'head -1 1>&3' 3>&1
  22.  
  23. This just MAY be the most expensive pop-up dialog box known to humankind.
  24. Of course, it can be decorated in the usual way with geometry hints, 
  25. size hints, header bar name, fonts, background/foreground colors, etc, etc.
  26.  
  27. Wayne Throop       ...!mcnc!aurgate!throop
  28.