If something pretends to be a VT220, then the key that deletes characters to the left should send DEL, not BS...
Just saying...

  Johnny

On 2021-11-23 00:48, RVP wrote:
The kernel currently defines the backspace key as:

$ fgrep CERASE /usr/include/sys/ttydefaults.h
#define CERASE          0177
$

This should probably be changed to CTRL('h') to match both the
NetBSD and GNU terminfo backspace key definitions, otherwise
the key doesn't work right after reset(1) or tset(1):

$ infocmp wsvt25 | tr ',' '\n' | fgrep kbs
# Reconstructed from /usr/share/misc/terminfo.cdb
wsvt25|NetBSD wscons in 25 line DEC VT220 mode,
[...]
  kbs=^H

$ /opt/ncurses/bin/infocmp wsvt25 | tr ',' '\n' | fgrep kbs
#       Reconstructed via infocmp from file: /opt/ncurses/share/terminfo/w/wsvt25
wsvt25|NetBSD wscons in 25 line DEC VT220 mode,
[...]
  kbs=^H
$

Thanks,
-RVP

--
Johnny Billquist                  || "I'm on a bus
                                  ||  on a psychedelic trip
email: b...@softjar.se             ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol

Reply via email to