[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ansi.sys pfkey should end with p
From: |
Kalle Olavi Niemitalo |
Subject: |
ansi.sys pfkey should end with p |
Date: |
Sat, 14 Mar 2009 16:48:16 +0200 |
The Microsoft® MS-DOS® Version 5 User's Guide (Document No.
SY07661/20885-0391) section on ANSI.SYS describes this sequence:
| ESC[code;string;...p
| Set Keyboard Strings Redefines a keyboard key to a
| specified string. [...]
In ncurses-5.7/misc/terminfo.src ($Revision: 1.341 $),
this is defined as the pfkey capability in:
| #### DOS ANSI.SYS variants
| #
| # This completely describes the sequences specified in the DOS 2.1 ANSI.SYS
| # documentation (except for the keyboard key reassignment feature, which
| # doesn't fit the <pfkey> model well). The klone+acs sequences were valid
| # though undocumented. The <pfkey> capability is untested but should work for
| # keys F1-F10 (%p1 values outside this range will yield unpredictable
results).
| # From: Eric S. Raymond <address@hidden> Nov 7 1995
| ansi.sys-old|ANSI.SYS under PC-DOS 2.1,
| OTbs, am, mir, msgr, xon,
| cols#80, lines#25,
| clear=\E[2J, cub1=^H, cud1=\E[B, cuf1=\E[C,
| cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[k, home=\E[H,
| is2=\E[m\E[?7h, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K,
| khome=^^, pfkey=\E[0;%p1%{58}%+%d;%p2"%s", rc=\E[u,
| rmam=\E[?7l, sc=\E[s, smam=\E[?7h, u6=\E[%i%d;%dR,
| u7=\E[6n, use=klone+color, use=klone+sgr8,
| ansi.sys|ANSI.SYS 3.1 and later versions,
| el=\E[K, use=ansi.sys-old,
However the final p seems to be missing from the pfkey capability.
$ TERM=ansi.sys tput pfkey 1 'dir' |hd
00000000 1b 5b 30 3b 35 39 3b 22 64 69 72 22 |.[0;59;"dir"|
0000000c
The output should instead be:
00000000 1b 5b 30 3b 35 39 3b 22 64 69 72 22 70 |.[0;59;"dir"p|
0000000c
pgpNVeqWRoLTa.pgp
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- ansi.sys pfkey should end with p,
Kalle Olavi Niemitalo <=