On Tue, 25 Aug 2020, hebisch-at-math.uni.wroc.pl |pop-forum| wrote:
...
Isn't the code for vedsetkey in $usepop/pop/ved/src/vdsetkey.p doing the job
of your install_escape? If I run non-x ved with TERM set to rxvt-unicode
and do :vedsetkey('\^[OA',vedcharup) on the command line, the uparrow key
starts behaving correctly. So might we just need a list of ved functions
and their corresponding terminfo names?
vedsetkey looks close. IIUC difference is that strings that we
get from terminfo do not contain initial escape. For example:
termcap_getstring('ku') =>
** A
I think that is just because of the way that pop11 prints. I get that
too, but (with TERM=rxvt-unicode)
: termcap_getstring('ku')->s;
: length(s)=>
** 3
: s(1)=>
** 27
: s(2)=>
** 79
: s(3)=>
** 65
Terminfo manual contains list of terminfo names, we get one part
from here. AFAICS for xterm normal setup is done in
pop/lib/ved/term/vedxtermkeys.p (using also other reutines).
There is syntax word 'vedset' which eventually generates calls
to 'vedsetkey'.
I'll see whether I can get together a list of the ved functions that we
need the corresponding terminfo names for and then tackle the terminfo
manual.
Steve