Date: Tue, 21 Dec 1999 10:05:12 +0100 (CET) From: Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de> To: freebsd-questions@freebsd.org Subject: Re: press any key to continue in sh Message-ID: <199912210905.KAA09867@dorifer.heim3.tu-clausthal.de>
next in thread | raw e-mail | index | archive | help
Dan Larsson wrote in list.freebsd-questions:
> How do I best produce a 'press any key to continue' prompt in sh?
echo -n "Press any key to continue... "
stty cbreak
dd of=/dev/null bs=1 count=1 2>/dev/null
stty -cbreak
echo
Regards
Oliver
--
Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany
(Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de)
"In jedem Stück Kohle wartet ein Diamant auf seine Geburt"
(Terry Pratchett)
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912210905.KAA09867>
