Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Dec 1999 13:46:30 -0600 (CST)
From:      Don Read <dread@texas.net>
To:        Dan Larsson <dl@tyfon.net>
Cc:        "[FreeBSD-Questions-List] (E-post)" <freebsd-questions@FreeBSD.ORG>
Subject:   RE: press any key to continue in sh
Message-ID:  <XFMail.991220134630.dread@texas.net>
In-Reply-To: <01BF4B21.FD8A5A90.dl@tyfon.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On 20-Dec-99 Dan Larsson wrote:
> How do I best produce a 'press any key to continue' prompt in sh?
> 

A "any key" will require some bit-twiddle in the ioctl ...

but if your "any key" happens to be the carriage return then :

boom.dread$ read -p "Press <CR> to continue:" dummy
Press <CR> to continue:
boom.dread$ 

Regards,
-- 
Don Read                                 dread@calcasieu.com
EDP Manager                                  dread@texas.net
Calcasieu Lumber Co.                               Austin TX
-- No Coffee   No Peace


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?XFMail.991220134630.dread>