Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16407

Re: Backspace echoed incorrectly with TERM=garbage

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: Backspace echoed incorrectly with TERM=garbage
Date Thu, 18 Jun 2020 17:41:40 -0400
Lines 29
Approved bug-bash@gnu.org
Message-ID <mailman.82.1592516506.2574.bug-bash@gnu.org> (permalink)
References <E1jlfdk-0006B3-GQ@lists.gnu.org> <CANaoh6KQf2kmZ7VC_0kV==-6ftDmQaUZs2HQF2kRzgnG5w2P-Q@mail.gmail.com> <75996.bryanh@giraffe-data.com> <20200618214140.GT19673@eeg.ccf.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace usenet.stanford.edu 1592516506 24589 209.51.188.17 (18 Jun 2020 21:41:46 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org
To Bryan Henderson <bryanh@giraffe-data.com>
Envelope-to bug-bash@gnu.org
Mail-Followup-To Bryan Henderson <bryanh@giraffe-data.com>, bug-bash@gnu.org
Content-Disposition inline
In-Reply-To <75996.bryanh@giraffe-data.com>
User-Agent Mutt/1.10.1 (2018-07-13)
Received-SPF none client-ip=139.137.100.1; envelope-from=wooledg@eeg.ccf.org; helo=mail.eeg.ccf.org
X-detected-operating-system by eggs.gnu.org: First seen = 2020/06/18 17:41:41
X-ACL-Warn Detected OS = Linux 2.2.x-3.x [generic] [fuzzy]
X-Spam_score_int -8
X-Spam_score -0.9
X-Spam_bar /
X-Spam_report (-0.9 / 5.0 requ) BAYES_00=-1.9, KHOP_HELO_FCRDNS=1, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN
X-Spam_action no action
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <20200618214140.GT19673@eeg.ccf.org>
X-Mailman-Original-References <E1jlfdk-0006B3-GQ@lists.gnu.org> <CANaoh6KQf2kmZ7VC_0kV==-6ftDmQaUZs2HQF2kRzgnG5w2P-Q@mail.gmail.com> <75996.bryanh@giraffe-data.com>
Xref csiph.com gnu.bash.bug:16407

Show key headers only | View raw


On Thu, Jun 18, 2020 at 08:53:57PM +0000, Bryan Henderson wrote:
> I see this with an X.org xterm under Linux and a Linux virtual console, both
> through SSH (Openssh), and Putty in Windows, via Putty's SSH.
> 
> To simplify things, I set my erase key to "q" (stty erase q).  ctl-V q
> confirms terminal sends q when I type it.  Behavior is the same - q functions
> as backspace, gets echoed as space.  In Bash 4, it gets echoed as backspace.

I cannot reproduce this in xterm under Debian 10, at least not with the
packages and settings I am using.

I don't recall ever hearing of anyone complaining about this before, so
it might be something unique to your setup, or your build of bash.

It might be worth pointing out, "echoed as backspace" isn't really a
meaningful phrase on its own.  When you press Backspace to erase a
character, what normally happens is that three characters are sent to
the terminal: backspace, space, and backspace.  The first backspace moves
the cursor to the left, the space overwrites the character on the screen
with a space (and moves the cursor right), and the second backspace moves
the cursor left again.

This behavior is controlled by the "echoe" setting in stty(1).

Is it possible that your terminal is receiving BS-space-BS and for whatever
reason, is ignoring/discarding the two BS characters, and therefore not
moving the cursor where it's supposed to be?  That's the best guess I
have at the moment.

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Backspace echoed incorrectly with TERM=garbage Greg Wooledge <wooledg@eeg.ccf.org> - 2020-06-18 17:41 -0400

csiph-web