From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4216 invoked by alias); 6 Jul 2011 17:44: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: 29534 Received: (qmail 6651 invoked from network); 6 Jul 2011 17:44:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at np.by designates 91.149.189.205 as permitted sender) From: ZyX Reply-To: zyx@np.by To: zsh-workers@zsh.org Subject: Re: Is there some postexec function? Date: Wed, 6 Jul 2011 21:01:08 +0400 User-Agent: KMail/1.13.7 (Linux/2.6.38.5-zen; KDE/4.6.3; x86_64; ; ) References: <4E1481BF.3060008@gmx.net> In-Reply-To: <4E1481BF.3060008@gmx.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3651703.jlf0Ui69Lk"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201107062101.08725@-zyx> --nextPart3651703.jlf0Ui69Lk Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Reply to message =ABIs there some postexec function?=BB,=20 sent 19:39:43 06 July 2011, Wednesday by Pascal Wittmann: I personally use RPS1=3D"%(?.."%{$'\033[33m\033[41m\033[1m'%}"%?"%{$'\033[0m'%}")" , but it will draw the exit code only in next prompt (and only in the last = one). Can I ask how are you going to modify existing prompt? I know a way to modi= fy=20 the current line, but I don't know what to do if I want to modify the line = after=20 LF was fed to the terminal. Original message: > Hi, >=20 > I wonder whether there exists a postexec function, a function that is > called, after a command is executed. I need something like that, because > I'm trying to print (redraw the prompt) the exit code of a program in > the prompt where it was called. >=20 > I've found some references=B9 to such a function, but they didn't worked > on my system. I'm using zsh 4.3.12. >=20 >=20 > Thanks for your help, > Pascal Wittmann >=20 >=20 > [1] https://gist.github.com/47474 --nextPart3651703.jlf0Ui69Lk Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEABECAAYFAk4UlNQACgkQTFU0h8DxG4MSpwCfWpVhhmG2jWGuAWxvB+5k5Cg7 qTgAnjG9023zyIqZnRbjuWnHeUC846es =heXi -----END PGP SIGNATURE----- --nextPart3651703.jlf0Ui69Lk--