From: "Jun T." <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
Subject: Re: Confirming X02zlevi test failures
Date: Wed, 26 Nov 2014 02:32:05 +0900 [thread overview]
Message-ID: <900E2DDB-B03E-4E1F-9F22-869D5A645E52@kba.biglobe.ne.jp> (raw)
In-Reply-To: <E7064DEC-9EF9-43DB-9B9B-3C9CDD7A93A9@kba.biglobe.ne.jp>
Sorry for disturbing.
I modified the dputs() as below, and got:
T 1 1 1 0 0
S 0 10000
T 0 0 0 0 10
R <^[>
T 1 1 1 0 9
S 1 10000
R <~>
(snip)
T 0 0 0 1 1
R <^X>
T 1 1 1 0 0
S 0 10000
T 0 0 0 0 0
R <^@>
So all the 10 characters (ESC ~ a I ESC ~ o ESC ~ ^X) are already
available when reading the 1st ESC.
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index d157e36..38197ce 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -531,6 +531,12 @@ raw_getbyte(long do_keytmout, char *cptr)
#endif
calc_timeout(&tmout, do_keytmout);
+ {
+ int val;
+ ioctl(SHTTY, FIONREAD, (char *)&val);
+ dputs("T %d %d %d %d %d", do_keytmout, tmout.tp,
+ tmout.tp ? tmout.exp100ths : 0, delayzsetterm, val);
+ }
/*
* Handle timeouts and watched fd's. If a watched fd or a function
@@ -635,6 +641,7 @@ raw_getbyte(long do_keytmout, char *cptr)
selret = select(fdmax+1, (SELECT_ARG_2_T) & foofd,
NULL, NULL, tvptr);
winch_block();
+ dputs("S %d %d",selret,tvptr->tv_usec);
# endif
/*
* Make sure a user interrupt gets passed on straight away.
@@ -853,6 +860,7 @@ raw_getbyte(long do_keytmout, char *cptr)
winch_unblock();
ret = read(SHTTY, cptr, 1);
winch_block();
+ dputs("R <%c>\n",*cptr);
return ret;
}
next prev parent reply other threads:[~2014-11-25 18:06 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-19 16:50 Bart Schaefer
2014-11-19 17:25 ` Ray Andrews
2014-11-19 23:05 ` Oliver Kiddle
2014-11-20 6:20 ` Bart Schaefer
2014-11-20 15:42 ` Jun T.
2014-11-20 17:18 ` Bart Schaefer
2014-11-21 14:37 ` Oliver Kiddle
2014-11-21 18:18 ` Jun T.
2014-11-21 18:56 ` Bart Schaefer
2014-11-23 1:37 ` Jun T.
2014-11-23 3:32 ` Bart Schaefer
2014-11-23 7:44 ` Jun T.
2014-11-24 0:11 ` Bart Schaefer
2014-11-23 9:00 ` Oliver Kiddle
2014-11-23 18:37 ` Bart Schaefer
2014-11-25 17:13 ` Jun T.
2014-11-25 17:32 ` Jun T. [this message]
2014-11-25 19:01 ` Bart Schaefer
2014-11-26 2:31 ` Jun T.
2014-11-26 14:51 ` Oliver Kiddle
2014-11-26 15:45 ` Peter Stephenson
2014-11-26 16:37 ` Bart Schaefer
2014-11-27 14:11 ` Oliver Kiddle
2014-12-01 10:58 ` Jun T.
2014-12-05 14:36 ` Oliver Kiddle
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=900E2DDB-B03E-4E1F-9F22-869D5A645E52@kba.biglobe.ne.jp \
--to=takimoto-j@kba.biglobe.ne.jp \
--cc=zsh-workers@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).