From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IhtrZ-0006V3-9A for qemu-devel@nongnu.org; Tue, 16 Oct 2007 17:22:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IhtrW-0006Ur-TN for qemu-devel@nongnu.org; Tue, 16 Oct 2007 17:22:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IhtrW-0006Uo-P1 for qemu-devel@nongnu.org; Tue, 16 Oct 2007 17:22:02 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IhtrV-0003np-KG for qemu-devel@nongnu.org; Tue, 16 Oct 2007 17:22:01 -0400 From: Paul Brook Subject: Re: [Qemu-devel] handling SIGWINCH with qemu -nographic Date: Tue, 16 Oct 2007 22:21:54 +0100 References: <471410B1.3030703@gmail.com> <47150130.3090106@gmail.com> <47152451.7020803@mail.berlios.de> In-Reply-To: <47152451.7020803@mail.berlios.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710162221.56166.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org > I think your question is quite reasonable. Imagine a Linux host > running X Windows and a terminal like xterm or kconsole. > Then run a program like "top" or "less" in this terminal. > When a user changes the size of the console window, top, less > and other console applications get notified of this change by SIGWINCH. > > Now run a similar program using QEMU's user mode emulation. > Why should it not be possible to get SIGWINCH in QEMU and > pass it on to the program in user mode emulation, so it can > behave like a native Linux application and change its appearance? > > I don't think that implementing this is very difficult, so it will be > done. Try doing the same thing with a real machine connected via a serial port. It won't work. The difference is that for local applications (and remote terminals via telnet or ssh) you have OOB mechanisms to transmit event data (e.g. terminal size). A UART only gives you a simple serial connection. If you want things like terminal resizing to work you need to run some more complicated protocol over the serial link, with appropriate tty emulation on either end. Paul