From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: promptcr workaround
Date: Tue, 01 Mar 2005 17:39:51 +0000 [thread overview]
Message-ID: <1050301173951.ZM27936@candle.brasslantern.com> (raw)
In-Reply-To: <quack.20050301T0017.874qfvbx08@quack.cs.berkeley.edu>
On Mar 1, 12:17am, Karl Chen wrote:
}
} Here's a way to simulate adding the \n only when necessary:
}
} function precmd {
} echo -n ${(l:$COLUMNS:::)}
} }
}
} This prints $COLUMNS spaces.
The only trouble with this is that it's really annoying when doing
cut-and-paste, because triple-click to select the whole line will
select all those trailing spaces as well.
See also http://www.zsh.org/mla/workers/2004/msg01117.html or
http://www.zsh.org/cgi-bin/mla/redirect?WORKERNUMBER=20472
(the latter gets an internal server error as of this writing, but
is otherwise theoretically more stable than the former).
next prev parent reply other threads:[~2005-03-01 17:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-01 8:17 Karl Chen
2005-03-01 16:41 ` Wayne Davison
2005-03-01 17:06 ` Wayne Davison
2005-03-01 19:50 ` Karl Chen
2005-03-01 17:39 ` Bart Schaefer [this message]
2005-03-01 18:20 ` Danek Duvall
2005-03-01 18:50 ` Wayne Davison
2005-03-02 20:21 ` Clint Adams
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=1050301173951.ZM27936@candle.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).