Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: clearing the screen without losing anything?
- X-seq: zsh-users 12442
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: clearing the screen without losing anything?
- Date: Wed, 16 Jan 2008 16:56:06 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=B8G/wxXWTPnrvSDYmTnPunWtGyD6oh0cJC6A4DjMGdk=; b=MVlJnFhbJfaYpALGImugESj7IYcfYVa+BWjLo11QJw5xXrRcQf8iB0oarwFrIRex/e9jPuvSosQ6OGbIOblm9jk59Y26TEgWrYSiED+hkQaReKx3XuoMp9hPGq39HlxXgJK4x2xwYYcbPz9ghCNmuVZ34c5VtlhSgWQDJWrNyuU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=wO0wT9WGtIVNbAGwRsyd/bILp8EUR50FOR4Ohm/hVhHyLvKVELMorDL+KMWMqunLhW1dFpURt52reKGA10N27IHXh7qUWltY4pFT2ZcPhy2CJapmMoKGbDwCr/hMBHJM7OKG/lDrZqPo5UfyDYxvjZKssbLpJ259sF/FY9ewFrQ=
- In-reply-to: <20080116151349.GD16058@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080116151349.GD16058@xxxxxxxxx>
On 16/01/2008, Andy Spiegl <zsh.Andy@xxxxxxxxx> wrote:
> I was just wondering whether it's possible to clear the screen (with Ctrl-l)
> such that the screen contents is pushed into the terminal's (i.e. xterm)
> scrollback buffer.
>
> Uhm, I am not even sure whether that's a zsh or xterm issue?
>
> Thanks,
> Andy.
You can create a custom widget that echos some blank lines, and then
clears the screen.
function myclear() {zle -I;repeat $((LINES-2)) echo;clear}
zle -N myclear
bindkey '^L' myclear
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author