Re: [PATCH] readline: bind kH (home down) and sanitize cursor key comments
Koichi Murase <[email protected]> Wed, 10 Jun 2026 10:57:03 +0900
| Newsgroups | gmane.comp.shells.bash.bugs |
|---|---|
| Message-ID | <CAFLRLk_yMBvRCAV2d5j+-h5itRa3m10CR43bKkXAHcLwJdKegQ@mail.gmail.com> |
2026年6月10日(水) 9:28 Xose Vazquez Perez <[email protected]>: > The 'kH' (home down) capability is defined in termcap as the > "lower-left" key. In many terminal emulators, this sequence is > sent by the 'End' key, serving as the counterpart to 'kh' (Home). What do you mean by "many" terminal emulators? I'm sure that most modern terminal emulators in the market simply send the End key input with the sequence defined by the termcap entry `@7' or the terminfo entry `kend'. I searched in the terminfo database for terminfo entry `kll' (corresponding to termcap `kH'), but TERM=att4415-*, TERM=att5420_2*, and TERM=mach* seem to distinguish End and the LowerLeft (or HomeDown), though I'm not sure if they are physical TTYs or emulators. Other terminals that provide distinct sequences for terminfo `kll' (termcap `kH') are TERM= amiga-vnc, bsdos*, {,new,mem,scr}hp*, mono-emx, {,old}pc3, pcvt*, vip*, but I'm not sure if we should call them "many" terminal emulators. Also, I'm not sure if they are still used terminals. In addition, tmux, which covers as wide a range of terminfo entries as possible because of its nature, doesn't seem to cover `kll' at all, while it covers all possible variants of `kend', `kEND', `kEND{3..7}' for modified End keys. > - Standardizes capitalization for Page Up, Page Down, and Delete > comments. > - Clarifies that bind_termcap_arrow_keys handles "cursor keys" > rather than just arrows. I feel that including unrelated changes in a single patch is typical in an AI-generated one.