From: "Dold, Wolfram" <Wolfram.Dold@allegion.com>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Cc: "Dold, Wolfram" <Wolfram.Dold@allegion.com>
Subject: [ptxdist] [PATCH] projectroot: remove setting stty erase character to "^H"
Date: Fri, 22 Mar 2019 12:30:34 +0000 [thread overview]
Message-ID: <20190322122938.23532-1-wolfram.dold@allegion.com> (raw)
In-Reply-To: <20190320154145.jjp4t34eqqozc3ic@pengutronix.de>
In popular console tools the default value for the stty erase character
is set to "^?".
BusyBox ash "read" built-in does not have line editing support.
If you now use "read" in an ash script and "^H" is set as stty erase
character on the target device, then correcting with the backspace
button does not work. Because the local console sends "^?"
and the target device expects "^H".
Signed-off-by: Wolfram Dold <wolfram.dold@allegion.com>
---
projectroot/etc/profile | 5 -----
1 file changed, 5 deletions(-)
diff --git a/projectroot/etc/profile b/projectroot/etc/profile
index 259113d33..833791497 100644
--- a/projectroot/etc/profile
+++ b/projectroot/etc/profile
@@ -2,11 +2,6 @@
#
export HISTFILE=/tmp/.ash_history.$USER.$PPID
-# This fixes the backspace when telnetting in.
-if [ "$TERM" != "linux" ]; then
- stty erase ^H
-fi
-
# source this file for subsequent shells, too
# (will also be sourced for init-shell)
export ENV=/etc/profile.environment
--
2.17.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2019-03-22 12:30 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-19 9:17 [ptxdist] Backspace not working in terminal (using ssh) Dold, Wolfram
2019-03-19 10:31 ` Roland Hieber
2019-03-19 10:57 ` Dold, Wolfram
2019-03-19 12:06 ` Ian Abbott
2019-03-19 12:33 ` Dold, Wolfram
2019-03-19 17:42 ` Ian Abbott
2019-03-20 9:15 ` Dold, Wolfram
2019-03-20 12:41 ` Ian Abbott
2019-03-20 15:41 ` Michael Olbrich
2019-03-21 12:46 ` Ian Abbott
2019-03-21 13:33 ` Michael Olbrich
2019-03-21 14:47 ` Ian Abbott
2019-03-21 15:24 ` Ian Abbott
2019-03-22 7:55 ` Michael Olbrich
2019-03-22 10:16 ` Ian Abbott
2019-03-22 12:30 ` Dold, Wolfram [this message]
2019-03-21 10:45 ` Dold, Wolfram
2019-03-21 11:26 ` Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190322122938.23532-1-wolfram.dold@allegion.com \
--to=wolfram.dold@allegion.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox