From: Clint Adams <schizo@debian.org>
To: zsh-workers@sunsite.auc.dk
Subject: zle_keymap and vt100
Date: Sun, 16 May 1999 23:15:06 -0400 [thread overview]
Message-ID: <19990516231506.A25285@dman.com> (raw)
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.
reply other threads:[~1999-05-17 3:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19990516231506.A25285@dman.com \
--to=schizo@debian.org \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).