From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14506 invoked by alias); 15 Sep 2007 21:08:26 -0000 Received: (qmail 14496 invoked by uid 22791); 15 Sep 2007 21:08:25 -0000 X-Spam-Check-By: sourceware.org Received: from mu-out-0910.google.com (HELO mu-out-0910.google.com) (209.85.134.189) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 15 Sep 2007 21:08:20 +0000 Received: by mu-out-0910.google.com with SMTP id g7so1488199muf for ; Sat, 15 Sep 2007 14:08:17 -0700 (PDT) Received: by 10.86.54.3 with SMTP id c3mr2376822fga.1189890497687; Sat, 15 Sep 2007 14:08:17 -0700 (PDT) Received: from ?88.210.69.58? ( [88.210.69.58]) by mx.google.com with ESMTPS id h4sm1852303nfh.2007.09.15.14.08.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 15 Sep 2007 14:08:14 -0700 (PDT) Message-ID: <46EC49B5.8090901@portugalmail.pt> Date: Sat, 15 Sep 2007 21:08:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: Jan Holesovsky CC: gdb-patches@sourceware.org Subject: Re: Patches to improve the gdbtui user experience References: <200709141358.24710.kendy@suse.cz> <46EC0FC8.3020704@portugalmail.pt> In-Reply-To: <46EC0FC8.3020704@portugalmail.pt> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-09/txt/msg00198.txt.bz2 Pedro Alves wrote: > Jan Holesovsky wrote: >> don't quit >> SingleKey by 'q' when it's activated by a nontrivial ctrl+x > > combination - the user is smart enough to exit this mode. > > If the only command gdb knows starting with 'q' is "quit", what > is the use? What is it preventing you to type? Maybe > a target/host specific command? At least on cygwin 'q' is not > ambiguous. On the other hand, if you're in in single key mode, and > want to type "quit", you have to type "qquit", since the first 'q' is > eaten, else you'll end up typing "uit" :) I guess it's a matter of > personal taste either way. > Let me just add a note to say that in my opinion, entering 'one command mode' with any other key (that is, a key that has no binding in 'single key mode'), is broken. One has to remember which keys are bound, and which aren't - that makes it too easy to accidently issue some command you didn't want to. Something like pressing to enter 'one command mode' would make much more sense to me - principle of least surprise. eg: I want to type 'info something', and I currently can because 'i' is not bound to anything. With your patch, 'i' would stepi. There ya go, I just stepped accidently, possibly over a jmp, when I didn't want to. I might have wanted to 'return 0', for example. Cheers, Pedro Alves