From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0dyw-0004XN-Sc for qemu-devel@nongnu.org; Wed, 21 Oct 2009 12:24:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0dys-0004R4-6E for qemu-devel@nongnu.org; Wed, 21 Oct 2009 12:24:14 -0400 Received: from [199.232.76.173] (port=37419 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0dys-0004Qu-18 for qemu-devel@nongnu.org; Wed, 21 Oct 2009 12:24:10 -0400 Received: from mail-ew0-f221.google.com ([209.85.219.221]:61002) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0dyr-0000rA-M7 for qemu-devel@nongnu.org; Wed, 21 Oct 2009 12:24:09 -0400 Received: by ewy21 with SMTP id 21so5438386ewy.8 for ; Wed, 21 Oct 2009 09:24:09 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <4ADCE635.4060604@codemonkey.ws> <4ADD9388.8040206@redhat.com> <20091020170800.GG32538@redhat.com> <4ADEB7EF.3060800@redhat.com> <5d6222a80910210652q3b005ca6ub950a2014bfbaa41@mail.gmail.com> Date: Wed, 21 Oct 2009 14:24:08 -0200 Message-ID: <5d6222a80910210924j62505b7dtf298754ce65f1c99@mail.gmail.com> Subject: Re: [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM From: Glauber Costa Content-Type: text/plain; charset=UTF-8 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mulyadi Santosa Cc: Kevin Wolf , qemu-devel@nongnu.org On Wed, Oct 21, 2009 at 2:04 PM, Mulyadi Santosa wrote: > On Wed, Oct 21, 2009 at 8:52 PM, 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? > > Presto! never thought about that....what are we supposed to do in > order to provide such mechanism? Who knows, perhaps I can lend a hand > (again) here.... You can provide a monitor command to do that something in the lines of: - add_macro - remove_macro - list_macros then you could keep the assigned keys in a list, and convert the command list to a list of functions and arguments. For compatibility, the current assigned keystrokes would be then converted to default macros, that could be removed, if requested It would be nice if you could find a way to update it on all displays, not only SDL, at once. this requires a little bit more work than what you did, but at least from my point of view, would be a nice feature, and overcome the limitations that people mentioned. -- Glauber Costa. "Free as in Freedom" http://glommer.net "The less confident you are, the more serious you have to act."