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

Re: Zle display bug with LONG expansions



> In an 80x32 (or smaller?) xterm, do the following:
> 
> zagzig[38] echo **/*<TAB>

zle doen not handle the case when a line does not fit onto the screen.

> I don't know why the first expansion uses only 25 lines.  The second bug
> with the blank line at the end of the screen and the prompt scrolled off
> is caused by auto-wraparound in the xterm, but if you turn that off, the
> line *never* wraps, so you can never see more than the last line of the
> expansion.  The third bug is just weird.

Geoff told me that for some reason zsh have to know in advance wether the
current terminal automatically wraps the line.  He is probably right since
some terminals start a new line when a character is printed in the last
column while most terminals start a new line only is a character is printed
after the last column.  It uses the termcap information to determine wether
the terminal automatically wraps.  Unfortunately this means that if
auto-wrap is turned off in xterm, zle will stop working :-).  I do not like
it either but I do not know how can this be fixed.  I do not know much
about zle_refresh.c in general.  It is mostly written (or rewritten) by
Geoff.

Zoltan




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