xprompt/xecho without a full XFree86 or X11, ... sought

Ralf Hauser ralfhauser@gmx.ch
Wed Mar 26 18:10:00 GMT 2003


Hi,

About 10 years ago, there was a nice little command 'xprompt' that allowed
me to get a string into a script without having the user work on a
console/terminal window.

<<
#!/bin/bash
ANSWER=`xprompt "how old are you?"`
xecho The answer is \"$ANSWER\" !
>>

win-ssh-askpass.exe does such prompting if the user doesn't mind not seeing
the input (masked with "*"s due to its original use for passwords), but
perhaps there are better solutions out there?

Similarly, xecho can be emulated by writing the text into a
/tmp/xecho.$$.html and then starting this with cygstart, but this is quite
clumsy and slow (e.g. with Mozilla).

Any thoughts?

Ralf

P.S.: Gilgamesh, I got somebody to translate TAGA Nayuta's README.txt for me
(with TAGA's permission http://www.ganaware.jp/S/win-ssh-askpass/) and soon,
I'll post it (see previous discussion on Japanese in
http://sources.redhat.com/ml/cygwin/2003-02/msg01494.html)
Binaries at
http://matsu-www.is.titech.ac.jp/~sohda/cygwin/dist/packages/win-ssh-askpass
/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list