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

Re: adam2 prompt truncating command output



Yep, "setopt prompt_sp" fixed it. Thanks Bart!

It does not appear to be causing any side effects either.

Interestingly, docs claim that this option is on by default (
http://zsh.sourceforge.net/Doc/Release/Options.html#index-PROMPTSP
<http://zsh.sourceforge.net/Doc/Release/Options.html#index-NOPROMPTSP>),
but it was not for me.

On Mon, Oct 30, 2017 at 10:41 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
wrote:

> On Mon, Oct 30, 2017 at 2:36 AM, Peter Stephenson
> <p.stephenson@xxxxxxxxxxx> wrote:
> > On Mon, 30 Oct 2017 06:27:13 +0000
> > xeyrion@xxxxxxxxx wrote:
> >> It looks like using adam2 prompt truncates command output if the output
> >> does not end with a newline:
> >
> > That's standard zsh behaviour: it's that way because the line editor
> > works best when it knows what position it's at in a line, so it ensures
> > the prompt starts at the left.
>
> The adam2 theme (and possibly some others) should probably be doing
> "setopt prompt_sp".
>


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