* zle_keymap and vt100
@ 1999-05-17 3:15 Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 1999-05-17 3:15 UTC (permalink / raw)
To: zsh-workers
Is there some reason these are hardcoded ANSI/VT100 codes
instead of values from terminfo/termcap?
/* emacs mode: arrow keys */
bindkey(emap, "\33[A", refthingy(t_uplineorhistory), NULL);
bindkey(emap, "\33[B", refthingy(t_downlineorhistory), NULL);
bindkey(emap, "\33[C", refthingy(t_forwardchar), NULL);
bindkey(emap, "\33[D", refthingy(t_backwardchar), NULL);
bindkey(emap, "\33OA", refthingy(t_uplineorhistory), NULL);
bindkey(emap, "\33OB", refthingy(t_downlineorhistory), NULL);
bindkey(emap, "\33OC", refthingy(t_forwardchar), NULL);
bindkey(emap, "\33OD", refthingy(t_backwardchar), NULL);
If so, how about adding
bindkey(emap, "\33OH", refthingy(t_beginningofline), NULL);
bindkey(emap, "\33OF", refthingy(t_endofline), NULL);
If not, how about the same functionality dynamically?
P.S. I singled out emap arbitrarily, not to exclude amap.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-05-17 3:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-17 3:15 zle_keymap and vt100 Clint Adams
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).