zsh-workers
 help / color / mirror / code / Atom feed
From: Danek Duvall <duvall@comfychair.org>
To: zsh-workers@sunsite.dk
Cc: Jordan Breeding <jordan.breeding@mac.com>
Subject: Re: prompt and prompt_cr option
Date: Mon, 11 Oct 2004 16:28:57 -0700	[thread overview]
Message-ID: <20041011232857.GB11629@lorien.comfychair.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0410111456360.9416@toltec.zanshin.com>

On Mon, Oct 11, 2004 at 03:11:43PM -0700, Bart Schaefer wrote:

> For certain types of terminals you might be able to query the current 
> cursor position and do something clever when it is not in column zero, but 
> it's been deemed more trouble than it's worth to have ZLE attempt to 
> determine whether the terminal has support for this and then to make use 
> of that information.  (Querying the terminal involves sending a control 
> string and then reading back a response, which is unreliable because it 
> can be garbled by user type-ahead or other interference.)

On the other hand, you could write a precmd function that did this and spit
out an extra newline if necessary (and set nopromptcr), no?  If so, that
might be worth adding to the Misc directory, as it's such a FAQ.

Danek


  reply	other threads:[~2004-10-11 23:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-09 15:17 Jordan Breeding
2004-10-11 22:11 ` Bart Schaefer
2004-10-11 23:28   ` Danek Duvall [this message]
2004-10-12  1:52     ` 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=20041011232857.GB11629@lorien.comfychair.org \
    --to=duvall@comfychair.org \
    --cc=jordan.breeding@mac.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).