[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Backspace echoed incorrectly with TERM=garbage
From: |
Andrew Church |
Subject: |
Re: Backspace echoed incorrectly with TERM=garbage |
Date: |
Fri, 19 Jun 2020 13:30:38 +0900 |
>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
I can reproduce this behavior, using bash 4.4(23) and readline 7.0(5):
read(0, "\177", 1) = 1
write(2, " ", 1) = 1
I also have ncurses-6.2, with readline linking directly to libtinfo.
If I link readline against ncurses-5.9 (forcing -lncurses), the problem
goes away:
read(0, "\177", 1) = 1
write(2, "\10 \10", 3) = 3
So the problem may be either in ncurses itself or in readline's
interaction with ncurses/libtinfo.
--Andrew Church
http://achurch.org/
- Backspace echoed incorrectly with TERM=garbage, bryanh, 2020/06/17
- Re: Backspace echoed incorrectly with TERM=garbage, Dennis Williamson, 2020/06/17
- Re: Backspace echoed incorrectly with TERM=garbage, Bryan Henderson, 2020/06/18
- Re: Backspace echoed incorrectly with TERM=garbage, Greg Wooledge, 2020/06/18
- Re: Backspace echoed incorrectly with TERM=garbage, Bryan Henderson, 2020/06/18
- Re: Backspace echoed incorrectly with TERM=garbage, Dennis Williamson, 2020/06/18
- Re: Backspace echoed incorrectly with TERM=garbage, Bryan Henderson, 2020/06/18
- Re: Backspace echoed incorrectly with TERM=garbage,
Andrew Church <=
- Re: Backspace echoed incorrectly with TERM=garbage, Bryan Henderson, 2020/06/19
- Re: Backspace echoed incorrectly with TERM=garbage, Chet Ramey, 2020/06/20
Re: Backspace echoed incorrectly with TERM=garbage, Greg Wooledge, 2020/06/18
Re: Backspace echoed incorrectly with TERM=garbage, Chet Ramey, 2020/06/18