Press any key to continue... bug?

Miven Dooligan dooligan at intergate.ca
Wed Nov 19 20:51:10 UTC 2003


A little thing that's been bugging me for quite a long time:
Using mc I get the habit of F10 to cancel things, so when I
run something from the F2 user menu and it asks me to
"Press any key to continue..." I seem to tap F10 by habit, which
leaves a bunch of junk on the command line when the panels
return, which I have to backspace though.
This little hack uses read() to suck the keyboard dry so that
I'm not left with chars in the buffer, and I have a nice clean
commandline.

Does this seem like a reasonable approach?

-- 
Peace and Cheers.




-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: main_c_PressAnyKey.patch
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20031119/6d40fda4/attachment.ksh>


More information about the mc-devel mailing list