From patchwork Wed Jun 4 19:54:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Klossner X-Patchwork-Id: 4297351 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1224C9F1D6 for ; Wed, 4 Jun 2014 21:52:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 561F3201E4 for ; Wed, 4 Jun 2014 21:52:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3CDB1202E5 for ; Wed, 4 Jun 2014 21:52:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751508AbaFDVwL (ORCPT ); Wed, 4 Jun 2014 17:52:11 -0400 Received: from usa7109mr002.acs-inc.com ([63.101.151.11]:56609 "EHLO USA7109MR002.ACS-INC.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751122AbaFDVwL (ORCPT ); Wed, 4 Jun 2014 17:52:11 -0400 X-Greylist: delayed 577 seconds by postgrey-1.27 at vger.kernel.org; Wed, 04 Jun 2014 17:52:11 EDT Received: from pogo.cesa.opbu.xerox.com ([13.253.157.31]) by USA7109MR002.ACS-INC.COM with ESMTP; 04 Jun 2014 16:42:31 -0500 Received: from andrew10.dev.opbu.xerox.com (andrew10.dev.opbu.xerox.com [13.123.4.42]) by pogo.cesa.opbu.xerox.com (8.13.6+Sun/8.13.6) with ESMTP id s54LgTXP023690; Wed, 4 Jun 2014 14:42:30 -0700 (PDT) Message-Id: <201406042142.s54LgTXP023690@pogo.cesa.opbu.xerox.com> From: Andrew Klossner Date: Wed, 4 Jun 2014 12:54:32 -0700 Subject: [PATCH] kconfig/mconf: fix handling of BACKSPACE key To: unlisted-recipients:; (no To-header on input) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some ancient terminals send control-H (decimal 8) when the BACKSPACE key is pressed. In "make menuconfig", an input box discards the keystroke. Change it to treat BACKSPACE in the same way as the DELETE key (or, as old-timers call it, the RUBOUT key.) Signed-off-by: Andrew Klossner --- scripts/kconfig/lxdialog/inputbox.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/kconfig/lxdialog/inputbox.c b/scripts/kconfig/lxdialog/inputbox.c index 447a582..60cddd2 100644 --- a/scripts/kconfig/lxdialog/inputbox.c +++ b/scripts/kconfig/lxdialog/inputbox.c @@ -127,6 +127,7 @@ do_resize: break; case KEY_BACKSPACE: case 127: + case 8: /* Backspace on old terminals sends control-H */ if (pos) { wattrset(dialog, dlg.inputbox.atr); if (input_x == 0) {