From owner-freebsd-questions Mon Dec 20 11:47:22 1999 Delivered-To: freebsd-questions@freebsd.org Received: from donhm.calcasieu.com (dread.austin.texas.net [206.127.24.91]) by hub.freebsd.org (Postfix) with ESMTP id BC03214BD0 for ; Mon, 20 Dec 1999 11:47:19 -0800 (PST) (envelope-from dread@donhm.calcasieu.com) Received: (from dread@localhost) by donhm.calcasieu.com (8.9.3/8.9.3) id NAA21576; Mon, 20 Dec 1999 13:46:32 -0600 (CST) (envelope-from dread) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <01BF4B21.FD8A5A90.dl@tyfon.net> Date: Mon, 20 Dec 1999 13:46:30 -0600 (CST) From: Don Read To: Dan Larsson Subject: RE: press any key to continue in sh Cc: "[FreeBSD-Questions-List] (E-post)" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 to continue:" dummy Press 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