Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NlmbK-0007IY-Jn for qemu-devel@nongnu.org; Sun, 28 Feb 2010 12:06:42 -0500 Received: from [199.232.76.173] (port=51692 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NlmbK-0007Hy-4F for qemu-devel@nongnu.org; Sun, 28 Feb 2010 12:06:42 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NlmbI-0006sQ-T7 for qemu-devel@nongnu.org; Sun, 28 Feb 2010 12:06:41 -0500 Received: from solo.fdn.fr ([80.67.169.19]:56675) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NlmbC-0006qt-72 for qemu-devel@nongnu.org; Sun, 28 Feb 2010 12:06:40 -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 F0429443AD for ; Sun, 28 Feb 2010 18:06:21 +0100 (CET) Received: from samy by const.ipv6 with local (Exim 4.71) (envelope-from ) id 1Nlmaz-0002Zr-6c for qemu-devel@nongnu.org; Sun, 28 Feb 2010 18:06:21 +0100 Date: Sun, 28 Feb 2010 18:06:21 +0100 From: Samuel Thibault Message-ID: <20100228170621.GU11637@const.famille.thibault.fr> References: <20100228143519.GM11637@const.famille.thibault.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20100228143519.GM11637@const.famille.thibault.fr> Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Re: [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 Samuel Thibault, le Sun 28 Feb 2010 15:35:19 +0100, a =E9crit : > 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 > Samuel >=20 > 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[] =3D { > /* Special keys */ > { "BackSpace", 0x07f }, > { "Tab", '\t' }, > - { "Return", '\r' }, > + { "Return", '\n' }, > { "Right", 0x105 }, > { "Left", 0x104 }, > { "Up", 0x103 }, --=20 Samuel jr> J'ai fait. Ne bougez pas, l'aide soignante va venir nettoyer. -+- FF in GNU - Le vieil homme et la merde -+-