Received: from eggs.gnu.org ([2001:4830:134:3::10]:52300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmL55-0000Po-8W for qemu-devel@nongnu.org; Fri, 29 Nov 2013 05:13:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VmL4z-0002s2-8J for qemu-devel@nongnu.org; Fri, 29 Nov 2013 05:13:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:7502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmL4z-0002rq-1D for qemu-devel@nongnu.org; Fri, 29 Nov 2013 05:13:45 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rATADhtb000612 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 29 Nov 2013 05:13:44 -0500 Date: Fri, 29 Nov 2013 11:13:41 +0100 From: Kevin Wolf Message-ID: <20131129101341.GE2887@dhcp-200-207.str.redhat.com> References: <1384426458-24700-1-git-send-email-stefanha@redhat.com> <1384426458-24700-4-git-send-email-stefanha@redhat.com> <20131129100402.GD2887@dhcp-200-207.str.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131129100402.GD2887@dhcp-200-207.str.redhat.com> Subject: Re: [Qemu-devel] [PATCH 3/5] osdep: add qemu_set_tty_echo() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org, Luiz Capitulino Am 29.11.2013 um 11:04 hat Kevin Wolf geschrieben: > Am 14.11.2013 um 11:54 hat Stefan Hajnoczi geschrieben: > > Using stdin with readline.c requires disabling echo and line buffering. > > Add a portable wrapper to set the terminal attributes under Linux and > > Windows. > > > > Signed-off-by: Stefan Hajnoczi > > There's already qemu_chr_fe_set_echo(). Can't we use that? Changing this > setting outside the context of a chardev feels wrong anyway. Okay, I see, tools don't have chardevs, unfortunately. But can we avoid duplication the other way round then, that is, let qemu-char.c use the new functions? They don't seem to be exactly the same, so I'm not completely sure if they are supposed to do different things or if they are just buggy in different ways. Kevin