From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756513AbcK2Koj (ORCPT ); Tue, 29 Nov 2016 05:44:39 -0500 Received: from tartarus.angband.pl ([89.206.35.136]:45323 "EHLO tartarus.angband.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754236AbcK2Kob (ORCPT ); Tue, 29 Nov 2016 05:44:31 -0500 Date: Tue, 29 Nov 2016 11:44:20 +0100 From: Adam Borowski To: Andrey Utkin Cc: Manuel =?iso-8859-1?Q?Sch=F6lling?= , 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: <20161129104420.GA14384@angband.pl> References: <20161123173340.GA24872@angband.pl> <1480265509-20922-1-git-send-email-manuel.schoelling@gmx.de> <20161127213730.GO11418@dell-m4800.home> <1480368499.29156.12.camel@gmx.de> <20161129100115.GA20034@stationary.pb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161129100115.GA20034@stationary.pb.com> X-Junkbait: aaron@angband.pl, zzyx@angband.pl User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kilobyte@angband.pl X-SA-Exim-Scanned: No (on tartarus.angband.pl); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 29, 2016 at 10:01:15AM +0000, Andrey Utkin wrote: > Regarding logout scrollback clearing not working for me. ncurses-6.0-rc1 > which I tested it with is the latest available in Gentoo portage, please > confirm whether I need any newer version, or should I tune something > else. I'd appreciate if you also tested your patch with gentoo setup. Could you please check whether its terminfo carries the required definitions? In ncurses sources, that's misc/terminfo.src The relevant parts are: .--==== # The 3.0 kernel adds support for clearing scrollback buffer (capability E3). # It is the same as xterm's erase-saved-lines feature. linux3.0|linux 3.0 kernels, E3=\E[3J, use=linux2.6, # This is Linux console for ncurses. linux|linux console, use=linux3.0, `---- I believe the first part was added first; if that's true it's possible this will work for you: TERM=linux3.0 clear I'm not sure what Gentoo does to clear the console during logout: it might just invoke "clear" (or its underlying ncurses implementation), it might carry a copy of Debian's "clear_console"[1], it might do something else entirely. Meow! [1]. It originally came from Ubuntu, forked there from "clear". -- The bill declaring Jesus as the King of Poland fails to specify whether the addition is at the top or end of the list of kings. What should the historians do?