Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NlkF7-0006H8-Ea for qemu-devel@nongnu.org; Sun, 28 Feb 2010 09:35:37 -0500 Received: from [199.232.76.173] (port=56529 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NlkF6-0006Gk-Tb for qemu-devel@nongnu.org; Sun, 28 Feb 2010 09:35:36 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NlkF5-0003Vq-R6 for qemu-devel@nongnu.org; Sun, 28 Feb 2010 09:35:36 -0500 Received: from solo.fdn.fr ([80.67.169.19]:57658) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NlkF4-0003U6-7M for qemu-devel@nongnu.org; Sun, 28 Feb 2010 09:35:34 -0500 Received: from const.ipv6 (youpi.is-a-geek.org [80.67.176.89]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by solo.fdn.fr (Postfix) with ESMTP id F299E443B4 for ; Sun, 28 Feb 2010 15:35:21 +0100 (CET) Received: from samy by const.ipv6 with local (Exim 4.71) (envelope-from ) id 1NlkEp-0000rV-Kr for qemu-devel@nongnu.org; Sun, 28 Feb 2010 15:35:19 +0100 Date: Sun, 28 Feb 2010 15:35:19 +0100 From: Samuel Thibault Message-ID: <20100228143519.GM11637@const.famille.thibault.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] Fix curses return key when using -k List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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. Samuel 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 },