Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: adam2 prompt truncating command output
- X-seq: zsh-users 22952
- From: xeyrion@xxxxxxxxx
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: adam2 prompt truncating command output
- Date: Mon, 30 Oct 2017 16:57:55 +0000
- Cc: Peter Stephenson <p.stephenson@xxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DSKTXjyPndJxz6uM6Jv4d7bg9/LfeD+edtVImljl0a0=; b=r1H5UWB5ujnBebL1Gvm4wnbZ4ntsUzUm//cxL/aMai/rMtBUVO4pR9akIiJisHJyGl ajG1t16O3pwVpJoiysM52w/mz533bjeev3zSuRXdqdo0P0PGVAALM1mcJQ40842Ra2mq xY4RugMo4kGwWmZY+KnvkVP8Ez6NZeAS56yU/+7pBJLf/NgnZepruuC9kpDsq/L1jPcH htnYhtzV3SRTrD49q0GbzvJTML4qPj1bZ4cQt3iLk+x7TQ7P5Sss6p3wzd6e0l+RKo5g uQkQPH8+3/q5On1YX+IFM8OB42Y98rE2MLdpsclK+gW5lOyeYSxlojHKojF7AAQUOO4A N5fA==
- In-reply-to: <CAH+w=7Z_L8eVfQm5F0QFMVBLu-ABx2f_rNnikwOyLcgbp=YT1w@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CGME20171030062906epcas2p30c9592dea463811869f232aea69d86fe@epcas2p3.samsung.com> <CAJLGesrLWpf3XD1Nt=K_oFyga0gHrt9hcTR-L=dB7gP=WnX4tQ@mail.gmail.com> <20171030093623.06eba19b@pwslap01u.europe.root.pri> <CAH+w=7Z_L8eVfQm5F0QFMVBLu-ABx2f_rNnikwOyLcgbp=YT1w@mail.gmail.com>
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