On Sat, Oct 18, 2025 at 12:24:14PM +0200, Jakub Horký wrote:
> Signed-off-by: Jakub Horký <[email protected]>
> ---
>  misc/terminfo.src | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/misc/terminfo.src b/misc/terminfo.src
> index c0c1e81e..edcb5af1 100644
> --- a/misc/terminfo.src
> +++ b/misc/terminfo.src
> @@ -977,7 +977,7 @@ linux-basic|Linux console (basic),
>            \264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
>       bel=^G, cr=\r, cub1=^H, cud1=\n, dim=\E[2m, ech=\E[%p1%dX,
>       el1=\E[1K, flash=\E[?5h$<200/>\E[?5l, ht=^I, hts=\EH,
> -     ind=\n, kb2=\E[G, kbs=^?, kcbt=\E[Z, khome=\E[1~, kmous=\E[M,
> +     ind=\n, kbeg=\E[G, kbs=^?, kcbt=\E[Z, khome=\E[1~, kmous=\E[M,
>       kspd=^Z, nel=\r\n, ri=\EM, rmam=\E[?7l, rs1=\Ec\E]R,
>       sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5
>           %t;2%;%?%p6%t;1%;%?%p9%t;11%;m,

Perhaps this is following up from one of the earlier patches.

Currently, infocmp xterm tells me

        ka1=\EOw, ka3=\EOy, kb2=\EOu, kbeg=\EOE, kbs=^?, kc1=\EOq,
                            ^^^^^^^^^^^^^^^^^^^

and kb2 has the vt100-escape for the application keypad's "5".
The sequence for kbeg would be sent by xterm if it received XK_KP_Prior,
which I've also assigned via XTGETTCAP to key_a3:

       key_a3                     ka3       K3  upper right of keypad

That follows the convention described in the comment for ansi.sys,
as well as the description I wrote here

        # A better adaptation to modern keyboards such as the PC's, which have 
a dozen

> @@ -28083,6 +28083,7 @@ v3220|LANPAR Vision II model 3220/3221/3222,
>  #    + fix teraterm-4.97, which no longer emulates VT220 editing keys
>  #      based on their physical locations
>  #    + add support for xterm shifted keys to winconsole, fix kbs and kspd
> +#    + set numpad 5 to kbeg instead of kb5 in linux-basic, matching xterm
>  #    (all by Jakub Horky)
>  #
>  ######## SHANTIH!  SHANTIH!  SHANTIH!
> -- 
> 2.43.0
> 
> 
> 

-- 
Thomas E. Dickey <[email protected]>
https://invisible-island.net

Attachment: signature.asc
Description: PGP signature

Reply via email to