From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N10aw-0001X5-9K for qemu-devel@nongnu.org; Thu, 22 Oct 2009 12:32:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N10ar-0001Pz-HF for qemu-devel@nongnu.org; Thu, 22 Oct 2009 12:32:57 -0400 Received: from [199.232.76.173] (port=51165 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N10ar-0001Pk-Cn for qemu-devel@nongnu.org; Thu, 22 Oct 2009 12:32:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37858) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N10aq-0001Jg-Ti for qemu-devel@nongnu.org; Thu, 22 Oct 2009 12:32:53 -0400 Date: Thu, 22 Oct 2009 14:32:42 -0200 From: Luiz Capitulino Subject: Re: [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM Message-ID: <20091022143242.6397ca54@doriath> In-Reply-To: <4AE07405.40403@redhat.com> 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> <4AE07405.40403@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Mulyadi Santosa , qemu-devel@nongnu.org, Glauber Costa On Thu, 22 Oct 2009 17:02:29 +0200 Kevin Wolf wrote: > 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? Let me rephrase this better: what use cases do we have for multiple commands in one line/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, I see now. Would have to think about this. > > 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? Yes. > 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". That's right, asking the user to edit json doesn't seem like a good idea.. I guess I'm working too much with it. :)