From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0sZn-00041G-GI for qemu-devel@nongnu.org; Thu, 22 Oct 2009 03:59:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0sZk-00040a-33 for qemu-devel@nongnu.org; Thu, 22 Oct 2009 03:59:15 -0400 Received: from [199.232.76.173] (port=36661 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0sZj-00040Q-Oh for qemu-devel@nongnu.org; Thu, 22 Oct 2009 03:59:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52663) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0sZj-0003ab-9K for qemu-devel@nongnu.org; Thu, 22 Oct 2009 03:59:11 -0400 Message-ID: <4AE01088.9070908@redhat.com> Date: Thu, 22 Oct 2009 09:58:00 +0200 From: Kevin Wolf MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM References: <4ADCE635.4060604@codemonkey.ws> <4ADD9388.8040206@redhat.com> <20091020170800.GG32538@redhat.com> <4ADEB7EF.3060800@redhat.com> <5d6222a80910210652q3b005ca6ub950a2014bfbaa41@mail.gmail.com> <4ADF3CFE.7090503@codemonkey.ws> <5d6222a80910211004ldd75525m7dc1b957faf7041@mail.gmail.com> <4ADF4E2C.204@codemonkey.ws> In-Reply-To: <4ADF4E2C.204@codemonkey.ws> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Glauber Costa , Mulyadi Santosa , qemu-devel@nongnu.org Am 21.10.2009 20:08, schrieb Anthony Liguori: > Glauber Costa wrote: >> On Wed, Oct 21, 2009 at 2:55 PM, Anthony Liguori wrote: >> >>> Glauber Costa wrote: >>> >>>> Why don't we provide a mechanism to make a macro out of a sequence of >>>> monitor commands, and let the user assign whatever he wants out of that? >>>> >>>> >>> Really? This seems exceedingly complicated to me. >>> >>> Redirecting the kernel output to serial and logging is a considerably better >>> solution. >>> >> To his specific problem, yes. >> >> But this probably don't work so well on some OSes that are less serial friendly. >> Also, there are valid use cases in which one may want, for example, to pause >> fast if some graphical event happens, which is an extension of what he mentioned >> initially. >> > > Then type "stop" in the monitor and hit enter when you need to. Or, > write a simple VNC client using gtk-vnc that can have any sort of crazy > key sequences you want. Having two different consoles at the same time is easy. Guest graphics in the SDL window, serial console on stdio. And now I need to add a monitor. Means that I need to start using named pipes or TCP connections or something. And I need to arrange the windows so that I can see qemu's SDL window and the shell with my netcat (or whatever) gets the enter key I hit. Yes, it's possible, but it's not nice. I like Jamie's suggestion for macros. Kevin