From: Mike Frysinger Date: Fri, 9 Nov 2007 17:19:56 -0400 Subject: [U-Boot-Users] get a confirmation from user Message-ID: <200711091619.56580.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de some Blackfins have a small amount of One-Time-Programmable (OTP) memory on them. the memory is not part of the Blackfin memory map, it can only be accessed via on-chip functions. due to the nature of the memory (it cannot be reprogrammed) and the way the memory is handled/documented (it's pretty friggin confusing), i'd like to show a confirmation prompt to the user which explains what is going to happen (which can be bypassed with a --force option to the command for non-interactive sessions). is there any common code to do this ? or do i have to write the small while (1) { tstc()/getc()/ctrlc() } loop myself in order to get the "YES" string ? -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 827 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20071109/65a30dd2/attachment.pgp