[ipxe-devel] serial arrow keys broken

Peter Pickford peter at netremedies.ca
Thu Mar 27 08:36:34 UTC 2014


Hi,

The arrow keys would not work in my ipxe serial console.

The following seems to fix it but causes a busy wait while reading escape
sequences.


diff --git a/src/core/getkey.c b/src/core/getkey.c
index d69cfb4..441b9d9 100644
--- a/src/core/getkey.c
+++ b/src/core/getkey.c
@@ -47,7 +47,7 @@ static int getchar_timeout ( unsigned long timeout ) {
                step();
                if ( iskey() )
                        return getchar();
-               cpu_nap();
+               //cpu_nap();
        }

        return -1;

------
Thanks

Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20140327/8a4155bb/attachment.htm>


More information about the ipxe-devel mailing list