Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Dynamic colored command in zsh
- X-seq: zsh-users 15412
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Julien Nicoulaud <julien.nicoulaud@xxxxxxxxx>
- Subject: Re: Dynamic colored command in zsh
- Date: Sun, 19 Sep 2010 16:39:37 +0200
- Cc: Michel <michel.barret@xxxxxxxxx>, zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=qRYxJWmjNF9KfJ//4r9FxiKi6PQa63U+uHrw3xapCAw=; b=PJEtCKx1kNTPwXaUZLoy2cFpkZjOnXwVrJfkDhI31fSpH3vcvvDwiFviaZzdqX3eo3 WjRz8ly4GZ5owolxm/IxJSx3Uu3pURYR7GfckfMqYnaSC9uV71NPoXUeyZuCjDYhIQ0d Akw6t5gbMr/fAOnNmDb7jmbQkLleWWDi5vkO0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=pdmiDZr9vcvkwXLaqiCWX5alKTfiFVRK0w6v3t6SapwboFICViPxqIfubW+2ZLDpBu pkJbeR0MbSlJRnr7HCs/T+4lmuDmP9QMPMGICBimD/qrZpBZQ3ENQwkXoob9+NognMbB 2yS5Es00anUpdIPtxyFigaucDlkFmMp4Yd3oQ=
- In-reply-to: <AANLkTi=H78fPNwCSnp9ZQQ901oP-Coak=odh+9kw5S+V@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <AANLkTinNJXay4pibEiQmKR4PSRcNiwCJ3w==Scc9rco0@xxxxxxxxxxxxxx> <20100913130345.GA9240@Lancelot> <AANLkTikq=h-awW+-HAB8-QWdg0dWTuY+uydMu-Ezmt-0@xxxxxxxxxxxxxx> <6227C736-CCD3-4E09-A922-106573F3D70D@xxxxxxxxxxx> <AANLkTimj6n_qSd3_5Egk6RN=v47GwWBb+W3_MjWpMs4t@xxxxxxxxxxxxxx> <AANLkTi=28cEq+XhxCy7pYKtu+bmSNG3QSKMfBUckJ7Tc@xxxxxxxxxxxxxx> <20100918230945.GA4530@Lancelot> <AANLkTin4ufgJ-5WHPxojvuukJiksMaqywFJtU0-So1Mo@xxxxxxxxxxxxxx> <AANLkTi=H78fPNwCSnp9ZQQ901oP-Coak=odh+9kw5S+V@xxxxxxxxxxxxxx>
On 19 September 2010 13:50, Julien Nicoulaud <julien.nicoulaud@xxxxxxxxx> wrote:
> My version merged with Roy's last one that handles inconsistent spacing in
> the command: http://gist.github.com/586698
>
> Nobody found how to trigger it whenever the buffer changes ? I tried with
> _refresh without success.
I posted a crazy thing a while back, see
http://www.zsh.org/mla/workers/2009/msg01225.html , that function is
called every time the line is redrawn _including on cursor movement_,
so it is probably very slow, but it should at least look correct. It
requires patching zsh though, so it's not very portable.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author