From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6916 invoked by alias); 18 Oct 2019 13:12:41 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 6908 invoked by uid 89); 18 Oct 2019 13:12:40 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mail-qk1-f178.google.com Received: from mail-qk1-f178.google.com (HELO mail-qk1-f178.google.com) (209.85.222.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Oct 2019 13:12:39 +0000 Received: by mail-qk1-f178.google.com with SMTP id u184so5214166qkd.4 for ; Fri, 18 Oct 2019 06:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=u6Gp70paiMPA7kBcI9Faugm+gEq/zole02S8C2CMALw=; b=Y5V3mGhRQX2AyLRe0RmHn0Tw3vhsMZDVBE7aJhusz9BhjUJ6Qnb1Yy43M8c+EW0c0d RQiVk/QlbYvF3gI9zD6x5F11DLoZ1htM/YMk2KWuu4GJwrF/AV5477AITua+ok5f2mwE Wc+iL9iHEUG5TK9yBCAX6yTV2pWL93hkMpNDHlaVryO90dgyxPnj4LMihRZWq35bFB6Y mRXcyICEgoWUVvGdzy53b9R8LxVeEXClDRJrkXMYdtTNcbyMGFqqqeiMDoW4UbhRRXbj HrOIsdwHhqu1/l/MubDO23+8clKVUq9Dl6lCSbKZJVfC0eaafjmoDbcHIojxM8pR5PS0 JKGA== Return-Path: Received: from [192.168.15.21] (201-42-175-128.dsl.telesp.net.br. [201.42.175.128]) by smtp.gmail.com with ESMTPSA id j7sm4675118qtc.73.2019.10.18.06.12.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Oct 2019 06:12:36 -0700 (PDT) Subject: Re: TUI single key mode: how to customize a key? To: Aleksey Midenkov , gdb@sourceware.org References: From: Luis Machado Message-ID: <34dcef86-e8fb-ee08-1f57-f9ecb00d6d4e@linaro.org> Date: Fri, 18 Oct 2019 13:12:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-10/txt/msg00021.txt.bz2 Hi, On 8/14/19 3:01 PM, Aleksey Midenkov wrote: > Is this customizable? Particularly I don't like 'r' key as it aggressive > enough to restart a program without a confirmation. And you can just miss a > row and press 'r' instead of 'f'. So I'd like to remove 'r' hotkey. > No. Unfortunately the keys are hardcoded in gdb/tui/tui.c: static const struct tui_char_command tui_commands[] = { { 'c', "continue" }, { 'd', "down" }, { 'f', "finish" }, { 'n', "next" }, { 'o', "nexti" }, { 'r', "run" }, { 's', "step" }, { 'i', "stepi" }, { 'u', "up" }, { 'v', "info locals" }, { 'w', "where" }, { 0, 0 }, }; I don't see a problem with making those configurable. Feel free to send a patch for it or a design idea so we can make this work.