Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp472079ybg; Fri, 18 Oct 2019 02:40:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGpGXTWf2QNxMe38RyJiK0q6mDYz78HU/47nkrTVe6kKnfqspoKrIA/Amq6JgArtil3nXu X-Received: by 2002:a05:6402:886:: with SMTP id e6mr8689331edy.152.1571391638428; Fri, 18 Oct 2019 02:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571391638; cv=none; d=google.com; s=arc-20160816; b=VxiG7lOsM4gJUPDTUJsXB0Kgvb/gvNWaEvZcOc3WeNRKg2LS2KzdiUbVX66t06v1MV ivk0ziuY+uklzjO/hefrAlq8omX5nHWe/WAkVHWKDaifp6y/pYIoTt3JqYFZRyfZcaVN vb1zKj8USodwcwhpw95CZc4fP1eZ4QQ3IISatz/eCelZ3iKl7wZQbRNnojNwxUrYEN2a 4aiR4Pkd2lXoeXV5rp8ZeiN8hpYF0Wz33h9tq7R8fLD0WuvOhtwt6kBMoYOOPv9KzqJl E74X+WXhvzpeZPDqsndsRrdeXtRCw724w7dEPnjCvDyQiajaudo0hX+CShvtDAe8BH/8 +qVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ZzqdPppOqmZ7owdzuL7vxTFr6ZcenIPQ+cUypjsYJBg=; b=tIl1rvExdhdMikhjunODDCoclOtEpSYxhmkNUgu6eYROXrgFD7wxEaurw4GGLMKmuq v97KcCphgkrN44REHREg7FF+cIqRJoRQkU6wZ7QtK6KdynlK+H2Prl7uBTUlAirqrzxQ +PLsrOSfGDPIUKaNOdalruAwsroWZWPLgZGiYtx1BTpufG849+yxdUKPydSDC6X/wOp1 9TsPPS7P8T0jCvq4L01Ix3888Yg5I6QnUmdTzxYfYNeGDbRaEACHsuuldtDAK1Sp0B7g FhTpbzJr4bqzt3qfp8c/oQcvujp//MmjHokuEibddEj7299PwnRlq8ABV52Vp5xVAojh QCoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mQJY8fRg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c21si2999998ejs.390.2019.10.18.02.39.56; Fri, 18 Oct 2019 02:40:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mQJY8fRg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407753AbfJQEMZ (ORCPT + 99 others); Thu, 17 Oct 2019 00:12:25 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:45850 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407691AbfJQEMZ (ORCPT ); Thu, 17 Oct 2019 00:12:25 -0400 Received: by mail-io1-f65.google.com with SMTP id c25so1243099iot.12 for ; Wed, 16 Oct 2019 21:12:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZzqdPppOqmZ7owdzuL7vxTFr6ZcenIPQ+cUypjsYJBg=; b=mQJY8fRgC8QygXRlAZYcoI2JQfO1ULEBuFZmc9AaaFY4UbsAiXtCwXJWkXannTU4A4 QEf2Cl+BksR6GFrFSg0S5gtOm4HnILag8HNYzIbJt2G4xq+9P8XNBIM/kd61j/PTUyl0 ZJISlimdDfQScCTn+qIlhOG0KdMZhFQRKUXUk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZzqdPppOqmZ7owdzuL7vxTFr6ZcenIPQ+cUypjsYJBg=; b=oO571ttCZRmPHB1xHaIyMz0vyRtUYyBdq/XA+hlW2KapYBZSrU2gymU79GQ3nqLZcs QPw5p4FIruqoZZckBseHZisT4/VK8zaSPzYWyeJUSbtEZviEm5kq7T+4GdcmmsDbMyRm 2891WTKuBgXHXB5NOz3zBEb8Xwjy4EmgBE3xoixXuZbAK+wSnzjq4JMoNdQcBdbTPS7z fbPFB4UB+8w/NZYoxYPCVNioxxmrTblXoEgzqefZbKWbdAMjTYV2Q8GfNrpCHG8aZXEj l6drSipo0gkjW+y2enBbAcuiCzFAxCIWaGak2cX44hka44d3puBholtvBggyMkCqbRKw FDzA== X-Gm-Message-State: APjAAAW9AVmeujXvdOicBKHxtfY94b2zMOTFvCSjKpH389qRrkINQ70c XwkMBqAH2vOLoXyfBPqxv36nxoo6Cpw= X-Received: by 2002:a6b:908:: with SMTP id t8mr1028442ioi.129.1571285542467; Wed, 16 Oct 2019 21:12:22 -0700 (PDT) Received: from mail-io1-f51.google.com (mail-io1-f51.google.com. [209.85.166.51]) by smtp.gmail.com with ESMTPSA id k66sm349177iof.25.2019.10.16.21.12.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Oct 2019 21:12:21 -0700 (PDT) Received: by mail-io1-f51.google.com with SMTP id w12so1248481iol.11 for ; Wed, 16 Oct 2019 21:12:21 -0700 (PDT) X-Received: by 2002:a6b:7715:: with SMTP id n21mr1090520iom.142.1571285541570; Wed, 16 Oct 2019 21:12:21 -0700 (PDT) MIME-Version: 1.0 References: <20191014154626.351-1-daniel.thompson@linaro.org> <20191014154626.351-6-daniel.thompson@linaro.org> In-Reply-To: <20191014154626.351-6-daniel.thompson@linaro.org> From: Doug Anderson Date: Wed, 16 Oct 2019 21:12:09 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 5/5] kdb: Tweak escape handling for vi users To: Daniel Thompson Cc: Jason Wessel , kgdb-bugreport@lists.sourceforge.net, LKML , Patch Tracking Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Oct 14, 2019 at 8:46 AM Daniel Thompson wrote: > > Currently if sequences such as "\ehelp\r" are delivered to the console then > the h gets eaten by the escape handling code. Since pressing escape > becomes something of a nervous twitch for vi users (and that escape doesn't > have much effect at a shell prompt) it is more helpful to emit the 'h' than > the '\e'. > > We don't simply choose to emit the final character for all escape sequences > since that will do odd things for unsupported escape sequences (in > other words we retain the existing behaviour once we see '\e['). > > Signed-off-by: Daniel Thompson > --- > kernel/debug/kdb/kdb_io.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Douglas Anderson