From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15491 invoked by alias); 22 Jun 2015 05:53:46 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35561 Received: (qmail 28743 invoked from network); 22 Jun 2015 05:53:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:content-type:subject:date:message-id:to:mime-version :sendlaterdate; bh=gJmVcMkq8/V68aJX/dTCBJh1yY0HsRx3+E9isu/ua/E=; b=Q/R1c0SjQ3kMtAcJbwFNUvc0TFYG/L1LYaFVeLhC6ajQUsyYOsqXdYGMCM1Z0oOjXX b54tsmN3rHQniKNC+xBhQJ3JVipM6BHxc0PsEvqMt69Q3dmWmw5B6lzS6D8Ysywzpc7y HuxgxjzHdFHcvQTrCyB3XCCTW/I40dp2q8Mmw6F5UL6PM/3+t9q8Eg/xwSDpjmlkt4zN Y+SnnRqYmzOskiOq41a5Z6nVVqBMwA6nTQpVokcg6RQ3IawJWpOkoq6Z0DHsC7lgZOAX ItPmY3SMUAJagTNw/JV7yEb3xkQ8545ZEpzhNTI3udlkZdvnxmE0AI3eonOyRBqFq431 Wo6w== X-Received: by 10.68.241.164 with SMTP id wj4mr54767703pbc.37.1434952420793; Sun, 21 Jun 2015 22:53:40 -0700 (PDT) Sender: Dave Yost From: Dave Yost X-Google-Original-From: Dave Yost Content-Type: multipart/alternative; boundary="Apple-Mail=_82656A8C-F44D-447C-9797-554C62DB70FB" Subject: preexec problems Date: Sun, 21 Jun 2015 22:53:32 -0700 Message-Id: <0C266C66-4788-4C62-BDF8-1E011884EFC1@yost.com> To: zsh workers Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Sendlaterdate: Sun, 21 Jun 2015 22:53:32 -0700 X-Mailer: Apple Mail (2.2098) --Apple-Mail=_82656A8C-F44D-447C-9797-554C62DB70FB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 It occurred to me that using the preexec hook, I could get the command = line to be in another color. However, there are some bugs. The white command line characters below = come about from using tab completion. 0 Sun 22:48:55 yost DaveBook ~ 203 Z% cd /tmp 0 Sun 22:49:02 yost DaveBook /tmp 204 Z% mkdir -p a/b/c/d 0 Sun 22:49:10 yost DaveBook /tmp 205 Z% ls a/b/c/d=20 0 Sun 22:49:17 yost DaveBook /tmp 206 Z%=20 0 Sun 22:50:55 yost DaveBook /tmp/a 210 Z% mkdir 1 2 3 4 5 6 0 Sun 22:51:06 yost DaveBook /tmp/a 211 Z% ls ls 1/ 2/ 3/ 4/ 5/ 6/ b/ This last problem was from typing =E2=80=9Cls=E2=80=9D and then tab. And = it gets worse if you try to backspace. Here is an easy way to reproduce this: Z% PS1=3D"$PS1%B" =20 Z% function preexec { echo -n '\e[39m' } Z% echo yea yea Z% ls a/b/c/d=20 Z% ls a/b/c=20 d Z% =20 --Apple-Mail=_82656A8C-F44D-447C-9797-554C62DB70FB--