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

Re: Weird behaviour of a multiline prompt



On Oct 29,  9:13pm, Nikolay Aleksandrovich Pavlov (ZyX) wrote:
}
}     PS1=$'abc\n'
}
} (i.e. non-empty line above an empty prompt) then it shows up as
} expected when I replace my prompt with this. But when I try using
} exactly the same prompt in `pexpect` zsh no longer shows any prompt at
} all: neither `abc`, nor RPS1.

Check to see if the SINGLE_LINE_ZLE option has become set when inside
pexpect?  RPS1 is not printed in single-line mode, and only the last
line of PS1.

Fix would be to force the environment value of LINES to be something
greater than 1 for pexpect.



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