Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753270AbcK0Xi0 (ORCPT ); Sun, 27 Nov 2016 18:38:26 -0500 Received: from 1.mo1.mail-out.ovh.net ([178.32.127.22]:42419 "EHLO 1.mo1.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752329AbcK0XiW (ORCPT ); Sun, 27 Nov 2016 18:38:22 -0500 X-Greylist: delayed 485 seconds by postgrey-1.27 at vger.kernel.org; Sun, 27 Nov 2016 18:38:22 EST Date: Mon, 28 Nov 2016 00:30:01 +0100 From: Jakub Wilk To: Adam Borowski Cc: Andrey Utkin , Manuel =?utf-8?Q?Sch=C3=B6lling?= , plagnioj@jcrosoft.com, tomi.valkeinen@ti.com, jslaby@suse.cz, gregkh@linuxfoundation.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 0/3] console: Add persistent scrollback buffers for all VGA consoles Message-ID: <20161127233001.aan5zndth7fmglhh@jwilk.net> References: <20161123173340.GA24872@angband.pl> <1480265509-20922-1-git-send-email-manuel.schoelling@gmx.de> <20161127213730.GO11418@dell-m4800.home> <20161127231548.GA29376@angband.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20161127231548.GA29376@angband.pl> User-Agent: NeoMutt/20161104 (1.7.1) X-Ovh-Tracer-Id: 7820219278992857048 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeelfedrfeehgddtfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 707 Lines: 19 * Adam Borowski , 2016-11-28, 00:15: >>clear(1) doesn't wipe the scrollback at all, it is still reachable, all of >>it. > >It does for me on the console. The man page says: > ># clear clears your screen if this is possible, including its scrollback ># buffer (if the extended "E3" capability is defined). clear looks in the ># environment for the terminal type and then in the terminfo database to ># determine how to clear the screen. > >Because of its reliance on terminfo, you need to have TERM=linux in your >environment; also, screen/tmux obviously breaks this. The "linux" terminfo entry didn't have E3 until very recently. You will need ncurses >= 20160514. -- Jakub Wilk