From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: zcurses keycodes
Date: Tue, 10 Nov 2015 11:24:32 -0800 [thread overview]
Message-ID: <56424470.7020909@eastlink.ca> (raw)
In-Reply-To: <20151110093634.6490fe9d@pwslap01u.europe.root.pri>
On 11/10/2015 01:36 AM, Peter Stephenson wrote:
> On Mon, 9 Nov 2015 16:55:26 -0800
> Ray Andrews <rayandrews@eastlink.ca> wrote:
>> I'm looking at a list of allowable keys in Sebastian's stuff, It includes:
>>
>> EOT
>> NAK
>> DLE
> Hmm... *those* look like ASCII key names rather than curses key
> definitions. Try "man ascii" or
>
> http://man7.org/linux/man-pages/man7/ascii.7.html
>
> pws
>
Thanks Peter, yeah I know they're ASCII, but there seems to be a
conflict, or one of those situations where one has no idea who owns a
key. I tried to add 'EXT' (^C of course), but it wouldn't take. The
ones I mention show up in my editor as bright white boxes--clearly they
are recognized as special--but no luck with EXT (tho I could capture ^C
with " ${\x0A} ").
case "$NKEY" in
(${\x0A}) ACTION='QUIT'; REPLY=-1 ;;
($'\n') REPLY=$IN[currentE]; ACTION='' ;;
($'\b'|\x7f|BACKSPACE) SEARCH_BUFFER="${SEARCH_BUFFER%?}" ;;
(ETB\x17) [ "$SEARCH_BUFFER" =
"${SEARCH_BUFFER% *}" ] &&\
" ETB " had to be added ... it didn't actually paste over, because I
understand that it's some symbol, not literal text. Point is that " ETB
" 'works', but not " EXT ".
So, I'm wondering who/where I'm not getting control of ^C via 'EXT' in
zcurses. Also, ^C behaves very strangely. " zcurses input " treats ^C
differently depending on whether the call is inside a function or not.
In some situations it creates a repetition of the previous keystroke.
Sometimes it exits the program, sometimes it's just ignored. I was
hoping that there'd be some zcurses/ncurses list of all accepted keys,
where I'd hope to see some mention of the ASCII acronyms and in
particular what's going on with ^C. I'd suspect that something else,
like the terminal, is getting in the way, but, again, I can handle ^C my
way with " ${\x0A} " so it seems to be under my/zcurses control.
prev parent reply other threads:[~2015-11-10 19:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-10 0:55 Ray Andrews
2015-11-10 9:36 ` Peter Stephenson
2015-11-10 19:24 ` Ray Andrews [this message]
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=56424470.7020909@eastlink.ca \
--to=rayandrews@eastlink.ca \
--cc=zsh-users@zsh.org \
/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).