[ipxe-devel] serial arrow keys broken

Jarrod Johnson jarrod.b.johnson at gmail.com
Thu Mar 27 14:21:41 UTC 2014


#define GETKEY_TIMEOUT ( TICKS_PER_SEC / 4 )

What happens if you changed that to 2 instead of 4?

Speaking of issues, FWIW, if you are in something that sends a cursor key
application mode (e.g. esxi serial console), then arrow keys might not work
based on what I see in code review.  ESC [ A is recogized as up arrow, but
in that mode a VT100 terminal will send ESC O A instead (etc).



On Thu, Mar 27, 2014 at 4:36 AM, Peter Pickford <peter at netremedies.ca>wrote:

> 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
>
> _______________________________________________
> ipxe-devel mailing list
> ipxe-devel at lists.ipxe.org
> https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20140327/3fa2ffd0/attachment.htm>


More information about the ipxe-devel mailing list