[coreboot] libpayload: editing keys for serial curses

Jordan Crouse jordan.crouse at amd.com
Fri Sep 5 23:23:51 CEST 2008


On 05/09/08 23:01 +0200, Ulf Jordan wrote:
> The attached patch adds editing keys and the missing F11 key to 
> curses serial input cooking. This brings serial and local keyboard better 
> in line with each other.
> 
> Compile and runtime tested with coreinfo+libpayload+coreboot-v3 under 
> QEMU.
> 
> /ulf

> Add editing keypad keys and the missing F11 key to the curses serial
> input cooking table.
> 
> Signed-off-by: Ulf Jordan <jordan at chalmers.se>
Acked-by: Jordan Crouse <jordan.crouse at amd.com>

3568.  Thanks

> Index: libpayload/curses/keyboard.c
> ===================================================================
> --- libpayload/curses/keyboard.c	(revision 3567)
> +++ libpayload/curses/keyboard.c	(arbetskopia)
> @@ -73,6 +73,12 @@
>  	{ "[B", KEY_DOWN },
>  	{ "[C", KEY_RIGHT },
>  	{ "[D", KEY_LEFT },
> +	{ "[F", KEY_END },
> +	{ "[H", KEY_HOME },
> +	{ "[2~", KEY_IC },
> +	{ "[3~", KEY_DC },
> +	{ "[5~", KEY_PPAGE },
> +	{ "[6~", KEY_NPAGE },
>  	{ "OP", KEY_F(1) },
>  	{ "OQ", KEY_F(2) },
>  	{ "OR", KEY_F(3) },
> @@ -83,6 +89,7 @@
>  	{ "[19~", KEY_F(8) },
>  	{ "[20~", KEY_F(9) },
>  	{ "[21~", KEY_F(10) },
> +	{ "[23~", KEY_F(11) },
>  	{ "[24~", KEY_F(12) },
>  	{ NULL },
>  };

> --
> coreboot mailing list
> coreboot at coreboot.org
> http://www.coreboot.org/mailman/listinfo/coreboot


-- 
Jordan Crouse
Systems Software Development Engineer 
Advanced Micro Devices, Inc.





More information about the coreboot mailing list