delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Reply-To: | <hauser AT acm DOT org> |
From: | "Ralf Hauser" <ralfhauser AT gmx DOT ch> |
To: | <cygwin AT cygwin DOT com> |
Subject: | xprompt/xecho without a full XFree86 or X11, ... sought |
Date: | Wed, 26 Mar 2003 18:48:41 +0100 |
Message-ID: | <KJEOKFJJEDMIGBEEJCHCOEJFNMAA.ralfhauser@gmx.ch> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
Importance: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |