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