Re: clobbering of last line by zsh prompt
From: Boyd Adamson (boydhyphenadamson_at_nospam.usa.net)
Date: 12/27/04
- Next message: Kevin Rodgers: "Re: clobbering of last line by zsh prompt"
- Previous message: Geoff Wing: "Re: clobbering of last line by zsh prompt"
- In reply to: kj: "clobbering of last line by zsh prompt"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 27 Dec 2004 17:33:39 +1100
kj <socyl@987jk.com.invalid> writes:
> I'm generally very impressed by the design of zsh, but the way zsh
> handles the case when the output to stdout does not end with a new
> line is just terrible. E.g.
>
> % echo foo
> foo
> % echo -n foo
> %
>
> The second 'foo' got clobbered by the zsh prompt. There's *no*
> excuse for such design. I understand that if PS1 doesn't begin in
> column 0 this can confuse the code for the RPROMPT, etc., etc.,
> etc., but would it have been so difficult to have the shell simply
> do this
>
> % echo -n foo
> foo
> zsh: appended newline to output
> %
This would require the shell watching the entire output of every command
to react accordingly, and probably a redesign of portions of the OS.
However, your first example is a nearly exact match for one in the zsh
FAQ:
http://zsh.sunsite.dk/FAQ/zshfaq03.html#l39
- Next message: Kevin Rodgers: "Re: clobbering of last line by zsh prompt"
- Previous message: Geoff Wing: "Re: clobbering of last line by zsh prompt"
- In reply to: kj: "clobbering of last line by zsh prompt"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|