Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Confirming X02zlevi test failures



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;
 }




Messages sorted by: Reverse Date, Date, Thread, Author