zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: xeyrion@gmail.com, zsh-users@zsh.org
Subject: Re: adam2 prompt truncating command output
Date: Mon, 30 Oct 2017 09:36:23 +0000	[thread overview]
Message-ID: <20171030093623.06eba19b@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <CAJLGesrLWpf3XD1Nt=K_oFyga0gHrt9hcTR-L=dB7gP=WnX4tQ@mail.gmail.com>

On Mon, 30 Oct 2017 06:27:13 +0000
xeyrion@gmail.com 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


  reply	other threads:[~2017-10-30  9:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20171030062906epcas2p30c9592dea463811869f232aea69d86fe@epcas2p3.samsung.com>
2017-10-30  6:27 ` xeyrion
2017-10-30  9:36   ` Peter Stephenson [this message]
2017-10-30 16:41     ` Bart Schaefer
2017-10-30 16:57       ` xeyrion
2017-10-30 20:25         ` Eric Cook
2017-10-31 16:40           ` xeyrion
2017-10-30 20:33         ` Bart Schaefer
2017-10-30 23:43           ` Oliver Kiddle
2017-10-31 20:32             ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171030093623.06eba19b@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.com \
    --cc=xeyrion@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).