Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Dynamic colored command in zsh
- X-seq: zsh-users 15413
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Julien Nicoulaud <julien.nicoulaud@xxxxxxxxx>
- Subject: Re: Dynamic colored command in zsh
- Date: Sun, 19 Sep 2010 16:55:58 +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=YCg+7QBBRHpfOj2RhQYWNr0AOYNEGUH8BeMXosk+NpI=; b=l9P5OH2v1+JsYakDFpHiCZADMBU9ur3mGz4m1x+dlwKchMOiIcoUTqssQKW9XXQyk7 eX/CZ6CwQfjSA17xzAgAnlJqrSrefkBDzaGxsHVr9313AMA5DNpTjBcM+Hs7fIQ3SFjg kvEI2MQq+ddePJuRwM/hEPYrnVzINkpCXIriU=
- 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=tWXiedDgHLIiDiQ4jKM9rXronkUZXNDbSpHpfpNLjtZ2SkBqCEVnlIwQI4X4UoDZK1 n1C50p2IwT7WjTMZNvh7lKR1V5y8zvpRY/EOCyn+cbHqZS7mx2k5+kSmyWS25a3GjPAb DrRm0QyXXfx9FjNGBK8QinUUBoAmC5TGtarqY=
- In-reply-to: <AANLkTi=6=JwmvqSqdCCJ2PskGRShmD1t8AfLLFTbSWXm@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> <AANLkTi=6=JwmvqSqdCCJ2PskGRShmD1t8AfLLFTbSWXm@xxxxxxxxxxxxxx>
On 19 September 2010 16:39, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> 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.
I should perhaps also note that this patch breaks some things like ^r
history search in some subtle ways. (and possibly other things).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author