From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0zCc-0002WX-IR for qemu-devel@nongnu.org; Thu, 22 Oct 2009 11:03:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0zCX-0002TL-VH for qemu-devel@nongnu.org; Thu, 22 Oct 2009 11:03:46 -0400 Received: from [199.232.76.173] (port=42638 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0zCX-0002TB-M3 for qemu-devel@nongnu.org; Thu, 22 Oct 2009 11:03:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55592) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0zCX-0003kH-1h for qemu-devel@nongnu.org; Thu, 22 Oct 2009 11:03:41 -0400 Message-ID: <4AE07405.40403@redhat.com> Date: Thu, 22 Oct 2009 17:02:29 +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> <5d6222a80910210924j62505b7dtf298754ce65f1c99@mail.gmail.com> <20091021183503.GA27677@shareable.org> <20091022124036.5df991f3@doriath> In-Reply-To: <20091022124036.5df991f3@doriath> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: Mulyadi Santosa , qemu-devel@nongnu.org, Glauber Costa Am 22.10.2009 16:40, schrieb Luiz Capitulino: > On Wed, 21 Oct 2009 19:35:03 +0100 > Jamie Lokier wrote: >> If the monitor accepted ";" as a command separator, to put multiple >> commands on a single line, could just be a quoted >> string which is processed as a line. > > Why is ";" needed? How else would you specify multiple commands for one macro? >> >> - add_key key >> - remove_key >> - list_keys > > What's key? Some kind of key binding. If we allowed all keys, it would probably make sense to use the sendkeys style format, but I assume we'll only support ctrl-alt- which already has a special meaning. > Ah, it doesn't have macro_del and if we use QObjects we can > consider saving its json representation in file so that we can > have macro_load. You are thinking about having this to avoid typing in the macro each time you start a VM? For something the user might want to touch I'd prefer a simple solution like reading ~/.qemurc or something like that and executing it as a "monitor script". Kevin