Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zle_refresh patch 2
- X-seq: zsh-workers 2967
- From: <hzoli@xxxxxxxxxxxx> (Zoltan T. Hidvegi)
- To: schaefer@xxxxxxx
- Subject: Re: zle_refresh patch 2
- Date: Thu, 6 Mar 1997 13:58:10 -0500 (EST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx (Zsh workers list)
- In-reply-to: <970305165110.ZM7569@xxxxxxxxxxxxxxxxxxxxxxx> from Bart Schaefer at "Mar 5, 97 04:51:10 pm"
Bart Schaefer wrote:
> Hmm. Well, I dislike your change because it presumes that init_term()
> is independent of the values of "lines" and "columns". This in itself
> (init_term() not knowing about lines/columns) MAY be wrong, now that I
> look at it, because init_term() is called from zle in a couple places,
> namely putprompt() and zleread().
>
> Will zle ever call init_term in such a way that a very-small terminal is
> set incorrectly? I don't follow it well enough to be sure.
zle calls init_term only if !termok holds, so it may cause a problem when
COLUMNS < 3. But here the meaning of termok should be changed. It should
contain flags, like TERM_BAD, TERM_NOUP, TERM_UNKNOWN, TERM_SHORT,
TERM_NARROW, etc. init_term() should only be called if TERM_UNKNOWN is
true. Line/column change should only change some flags in termok.
Zoltan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author