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

Re: adam2 prompt truncating command output



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.

I'm not familiar with this prompt, but if it prints anything at the
right hand end of the screen, you're out of luck --- if there's output
without a newline it'll just wrap round and mess up the display.  You'll
have to pick which aspect you dislike least.

Otherwise, you might be able to get away without the standard behaviour,
in which case try the option:

  setopt nopromptcr

pws



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