Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Keybindings lost in Xterm after top exits
- X-seq: zsh-workers 30501
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Keybindings lost in Xterm after top exits
- Date: Thu, 7 Jun 2012 06:53:39 +0200
- Cc: Edgar Merino <donvodka@xxxxxxxxx>, "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=ZzZAe6eG655X2dime2LLPYHh8kDnbtEba5q8Do9f8fQ=; b=fO+spmkScmauwKkGV1yqQ2Uvli0GBfF1BFxHnoRgHOC/YF7Gkm+qRugTHn4bwrKra4 6sqq+bmuEavFPt1xMvu+p/0CCZdf3r047pF1uyjHGDbdq8M9i6WpcT1c+vyl2pUAsKjo 0+7DDSOv0t6XfPqQ3pGY7LHoQ8WPLupjlrQW0PfF3DRRpWvCzxoAw/+riVT71wGSvXJt 3IGaxRKxW/dflCDKfxHpBVMYK0u4h11NW7FqGM0rxY5H/KcDzE0+4Kx4E8O6h1pw8cZw xCiSG2JDbg2hKYCTPetsye8/RN/JDI0+1RNfBIfxRPLPBhpDttdhjH7Lx7TJQ0y+jq5Y zSeg==
- In-reply-to: <120606211954.ZM7057@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <4FC5B2CB.6090701@gmail.com> <120530075824.ZM6547@torch.brasslantern.com> <4FCFA55E.4090606@gmail.com> <120606211954.ZM7057@torch.brasslantern.com>
On 7 June 2012 06:19, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Jun 6, 1:45pm, Edgar Merino wrote:
> }
> } I would like to wrap top within a function, however I don't know how to
> } set the mode back to normal mode from a script, can you point me to any
> } source where I could investigate on how to this?
>
> It should work to do this:
>
> zmodload zsh/terminfo
> top() {
> command top "$@"
> print -r "${terminfo[rmkx]}"
> }
You probably want to either add -n to the prints, or just use echoti
rmkx instead. (echotc for the $termcap ones).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author