zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: PATCH: random attribute stuff
Date: Tue, 06 May 2008 07:34:42 -0700	[thread overview]
Message-ID: <080506073442.ZM22499@torch.brasslantern.com> (raw)
In-Reply-To: <200805060915.m469FeJP017551@news01.csr.com>

On May 6, 10:15am, Peter Stephenson wrote:
}
} I'm not completely convinced of the utility of this chunk of code.  It
} seems to be designed so that after a right prompt is output everything
} is the same as after the normal prompt.

I think that would be correct, because the rprompt is printed last and
then the cursor is merely moved to the end of the normal prompt.

} But both before and after this patch if I let the right prompt leave,
} say, underline turned on then when I play with history lines the main
} line appears underlined, too. I don't think it's ever been a good idea
} to leave effects turned on after prompts.

Some people want the entire command line to look one way and the output
from the command to look another way, so they can easily tell what's a
command and what isn't when scrolling backward through buffered output.
Leaving effects turned on after the prompt is the only way to do that;
at some point it was decided that it was better to have the prompt help
out with it, than to force people to trick the shell into outputting a
terminal control sequence without using the prompt escapes.


  reply	other threads:[~2008-05-06 14:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-06  9:15 Peter Stephenson
2008-05-06 14:34 ` Bart Schaefer [this message]
2008-05-06 14:42   ` Peter Stephenson
2008-05-06 14:58     ` Bart Schaefer
2008-05-06 15:10       ` Peter Stephenson
2008-05-06 15:38         ` Bart Schaefer
2008-05-06 15:48           ` Peter Stephenson
2008-05-06 18:16             ` Peter Stephenson
2008-05-07 15:44               ` Oliver Kiddle
2008-05-07 15:49               ` Oliver Kiddle
2008-05-07 15:55                 ` Peter Stephenson

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=080506073442.ZM22499@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /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).