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

Re: Bug#134474: zsh misbehaves if LINES=2



On Feb 17,  8:55pm, Clint Adams wrote:
} Subject: Re: Bug#134474: zsh misbehaves if LINES=2
}
} > As you probably know, my zsh prompt sets the xterm title. Well, this
} > seems to not work in an xterm that is sized to 80x2. Updates to the
} > title, which should happen every time the prompt is displayed, do not.
} > 
} > My guess is that zsh is doing some kind of trimming of the prompt it
} > displays if the terminal seems to be too small to contain the whole
} > thing, or something like that.
} 
} Yes, it considers the terminal to be short if it's under 3 lines long;
} what I don't understand is why it's eliding everything within %{ %}.

This is from SINGLE_LINE_ZLE mode, which is automatically turned on when
LINES becomes too small, and is done by singlerefresh() rather than by
the prompt code.  The right-side prompt is turned off in this case as
well.  This is (sort of, not well) documented in "man zshzle".

However, the prompt code disables termcap sequences like underlining on
short terminals; see Src/prompt.c:tsetcap().  This is probably done in
support of SINGLE_LINE_ZLE, but if so I think it ought to be based on
the option setting rather than on (termflags & TERM_SHORT).

Geoff?

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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