Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: promptcr workaround
- X-seq: zsh-workers 20901
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: promptcr workaround
- Date: Tue, 01 Mar 2005 17:39:51 +0000
- In-reply-to: <quack.20050301T0017.874qfvbx08@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <quack.20050301T0017.874qfvbx08@xxxxxxxxxxxxxxxxxxxxx>
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).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author