RFC: Bootscript Changes

DJ Lucas dj at lucasit.com
Sat Jan 31 11:15:40 PST 2004


Bryan Kadzban wrote:
> DJ Lucas wrote:
> 
>> Does there need to be a specific key (or key combination) pressed?
>> Why not just make it easy: "Press *any* key to continue..." and then
>> use 'read -n 1'?
> 
> 
> Hmm... it does look like bash's read builtin puts the terminal into
> non-line-buffered mode when you give it -n 1, so that could work.  (I
> was originally thinking it would still wait until it saw a line-end.)
> 
> I guess the question is, does ash do the same thing?  I would hope so,
> because that'd make it easy...

unfortunately not...and hence a bad idea.

-- DJ




More information about the lfs-dev mailing list