Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh script wipes out my PROMPT and RPROMPT
- X-seq: zsh-users 1279
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Timothy J Luoma <luomat+zsh+users@xxxxxxxxxxxxxxx>
- Subject: Re: zsh script wipes out my PROMPT and RPROMPT
- Date: Sat, 24 Jan 1998 14:52:41 -0800
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <199801242229.RAA27851@xxxxxxxxxxxxxxx>
- References: <199801242023.PAA25336@xxxxxxxxxxxxxxx> <980124141339.ZM23464@xxxxxxxxxxxxxxxxxxxxxxx> <199801242229.RAA27851@xxxxxxxxxxxxxxx>
On Jan 24, 5:29pm, Timothy J Luoma wrote:
} Subject: Re: zsh script wipes out my PROMPT and RPROMPT
}
} > LINES=`wc -l $FILE | awk '{print $1}'`
}
} AH... I used another variable instead.
}
} The behavior seems to have stopped.... I'm not sure why.... but since it
} shouldn't have happened anyway....
Could be that the zsh executing the script was improperly resetting the
tty driver's idea of the terminal dimensions when it saw the assignment
to LINES. The parent zsh would then see the new tty configuration when
the script exited, and reset its own LINES. If LINES became sufficiently
small, zle might decide that it couldn't draw a prompt, or some such.
There were a number of changes to zsh's tty-size handling in 3.0.5 that
I still think were bad ideas; in the face of too little information, I'd
rather that the shell did nothing, rather than reconfigure the tty based
on partial data that might be wrong. However, I can't definitely point
to any particular bug (not even this one) that is directly attributable
to the new code.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author