From: Samuel Thibault Date: Sun, 28 Feb 2010 14:35:19 +0000 (+0100) Subject: Fix curses return key when using -k X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~8575 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=942cef3799d9f3c4fd0fd77a21b7eca220281af9;p=sdk%2Femulator%2Fqemu.git Fix curses return key when using -k Hello, There is a small incoherency in curses_keys.h, which makes it fail to emit \n when using e.g. -k fr: curses2keysym transforms \r and 0x157 into \n, but name2keysym binds \r with Return, not \n. The patch below fixes that. Signed-off-by: Samuel Thibault Signed-off-by: Andrzej Zaborowski --- diff --git a/curses_keys.h b/curses_keys.h index a6e41cf..6030720 100644 --- a/curses_keys.h +++ b/curses_keys.h @@ -446,7 +446,7 @@ static const name2keysym_t name2keysym[] = { /* Special keys */ { "BackSpace", 0x07f }, { "Tab", '\t' }, - { "Return", '\r' }, + { "Return", '\n' }, { "Right", 0x105 }, { "Left", 0x104 }, { "Up", 0x103 },