Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16410
| From | Bryan Henderson <bryanh@giraffe-data.com> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: Backspace echoed incorrectly with TERM=garbage |
| Date | 2020-06-19 02:30 +0000 |
| Message-ID | <mailman.102.1592534927.2574.bug-bash@gnu.org> (permalink) |
| References | (2 earlier) <75996.bryanh@giraffe-data.com> <20200618214140.GT19673@eeg.ccf.org> <13540.bryanh@giraffe-data.com> <CANaoh6J1ttm_Mqm1m7Equ4k02LYLLZ=Ao3A8L30mM=77h_ysOA@mail.gmail.com> <69359.bryanh@giraffe-data.com> |
> Try the xev program. It will show X events and may reveal the keypresses
> you're interested in.
Thanks. The mystery here is on the other side - things received by the
terminal, not keys pressed.
But I thought of 'strace'. I attached that to the Bash process and
clearly saw it sending only space characters, no backspaces:
pselect6(1, [0], NULL, NULL, NULL, {[], 8}) = 1 (in [0])
read(0, "q", 1) = 1
write(2, " ", 1) = 1
pselect6(1, [0], NULL, NULL, NULL, {[], 8}) = 1 (in [0])
read(0, "q", 1) = 1
write(2, " ", 1) = 1
Compared to the better Bash 4 behavior:
read(0, "q", 1) = 1
write(2, "\10 \10", 3) = 3
read(0, "q", 1) = 1
write(2, "\10 \10", 3) = 3
(N.B. "q" is the "erase" character for this experiment).
(N.B. "\10" is ASCII backspace (ctl-H) in octal)
I see what is probably the crucial difference between my working Bash 4 and
my nonworking Bash 5: Different Ncurses shared libraries. The former uses
libncurses.so.5 _and_ libtinfo.so.5, while the latter uses only
libtinfo.so.6.
Still doesn't explain why this is a problem only for me, though.
--
Bryan Henderson San Jose, California
Back to gnu.bash.bug | Previous | Next — Next in thread | Find similar
Re: Backspace echoed incorrectly with TERM=garbage Bryan Henderson <bryanh@giraffe-data.com> - 2020-06-19 02:30 +0000 Re: Backspace echoed incorrectly with TERM=garbage Ralf Goertz <me@myprovider.invalid> - 2020-06-19 09:41 +0200
csiph-web