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

Re: Test failures on MacOS with latest pull from git



2014/11/04 03:18, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> That's a good hypothesis, but a little strange because the zsh that
> starts up on the pty ought to be resetting that (just as one starting
> in a terminal window would).

Yes, the slave zsh should set up the slave tty properly when it starts.
But Zle would change the tty mode between canonical and non-canonical
modes back and forth. It seems the slave tty is still in the canonical
mode when it should not be (i.e., when reading the command line character
by character). But I don't know why this happens only with BSD-based pty.

Currently I have no time to go into any more detail, but I must say
I would not be able to get any real fix even if I have enough time.

The following is another possible workaround (X02zlevi.ztst need not be
patched if this patch is used).

Jun


diff --git a/Test/comptest b/Test/comptest
index 4655f3b..b6256cc 100644
--- a/Test/comptest
+++ b/Test/comptest
@@ -34,7 +34,7 @@ comptestinit () {
 "fpath=( $fpath )" \
 "bindkey -$comptest_keymap" \
 'LISTMAX=10000000
-stty 38400 columns 80 rows 24
+stty 38400 columns 80 rows 24 werase undef
 TERM=vt100
 setopt zle
 autoload -U compinit



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