From danfe@regency.nsu.ru  Wed Aug 20 01:41:55 2003
Return-Path: <danfe@regency.nsu.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B572416A4BF
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Aug 2003 01:41:55 -0700 (PDT)
Received: from mx.nsu.ru (mx.nsu.ru [212.192.164.5])
	by mx1.FreeBSD.org (Postfix) with ESMTP id AAE4343FE0
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Aug 2003 01:41:54 -0700 (PDT)
	(envelope-from danfe@regency.nsu.ru)
Received: from mail by mx.nsu.ru with drweb-scanned (Exim 3.35 #1 (Debian))
	id 19pOax-0003Mx-00
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Aug 2003 15:45:31 +0700
Received: from regency.nsu.ru ([193.124.210.26])
	by mx.nsu.ru with esmtp (Exim 3.35 #1 (Debian))
	id 19pOaw-0003Lu-00
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Aug 2003 15:45:30 +0700
Received: from regency.nsu.ru (localhost [127.0.0.1])
	by regency.nsu.ru (8.12.9/8.12.9) with ESMTP id h7K8gQvt021432
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Aug 2003 15:42:26 +0700 (NOVST)
	(envelope-from danfe@regency.nsu.ru)
Received: (from danfe@localhost)
	by regency.nsu.ru (8.12.9/8.12.9/Submit) id h7K8gQxS021376;
	Wed, 20 Aug 2003 15:42:26 +0700 (NOVST)
Message-Id: <200308200842.h7K8gQxS021376@regency.nsu.ru>
Date: Wed, 20 Aug 2003 15:42:26 +0700 (NOVST)
From: Alexey Dokuchaev <danfe@regency.nsu.ru>
Reply-To: Alexey Dokuchaev <danfe@regency.nsu.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Convenience improvement suggestion: clear screen after ^D (logout) at vty
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         55794
>Category:       misc
>Synopsis:       Convenience improvement suggestion: clear screen after ^D (logout) at vty
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 20 02:44:58 PDT 2003
>Closed-Date:    Mon Aug 30 08:56:38 GMT 2004
>Last-Modified:  Mon Aug 30 08:56:38 GMT 2004
>Originator:     Alexey Dokuchaev
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
CNIT NSU
>Environment:
System: FreeBSD regency.nsu.ru 4.8-STABLE FreeBSD 4.8-STABLE #0: Fri Aug 8 20:27:14 NOVST 2003 root@regency.nsu.ru:/usr/obj/usr/src/sys/REGENCY i386
>Description:
By default, getty(8) does not clear console screen upon logout, which is
somewhat annoying, though easy to fix.  Since I've been fixing this
thing in every installation during several past years (and I know many
others that do that as well), I think it's probably time to make it into
CVS.  Thoughts?
>How-To-Repeat:
Just login at console, ls /, hit ^D.  See all you ls(1) output there.
>Fix:
The fix is trivial:

%%%
--- /etc/gettytab	Thu Jun  5 08:57:21 2003
+++ gettytab	Wed Aug 20 15:13:01 2003
@@ -38,7 +38,7 @@
 #     np:ap:  same as np except istrip.
 #
 default:\
-	:cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\
+	:cb:ce:ck:lc:fd#1000:im=^L\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\
 	:if=/etc/issue:
 
 #

>Release-Note:
>Audit-Trail:

From: Peter Pentchev <roam@ringlet.net>
To: Alexey Dokuchaev <danfe@regency.nsu.ru>
Cc: bug-followup@FreeBSD.org
Subject: Re: misc/55794: Convenience improvement suggestion: clear screen after ^D (logout) at vty
Date: Thu, 28 Aug 2003 11:03:21 +0300

 On Wed, Aug 20, 2003 at 03:42:26PM +0700, Alexey Dokuchaev wrote:
 > 
 > >Number:         55794
 > >Category:       misc
 > >Synopsis:       Convenience improvement suggestion: clear screen after ^D (logout) at vty
 > >Originator:     Alexey Dokuchaev
 > >Release:        FreeBSD 4.8-STABLE i386
 > >Description:
 > By default, getty(8) does not clear console screen upon logout, which is
 > somewhat annoying, though easy to fix.  Since I've been fixing this
 > thing in every installation during several past years (and I know many
 > others that do that as well), I think it's probably time to make it into
 > CVS.  Thoughts?
 > >How-To-Repeat:
 > Just login at console, ls /, hit ^D.  See all you ls(1) output there.
 > >Fix:
 > The fix is trivial:
 [snip termcap fix]
 
 I prefer to do this in a logout script when necessary - for some users
 only - because I personally don't like the clear-screen idea too much...
 
 G'luck,
 Peter
 
 -- 
 Peter Pentchev	roam@ringlet.net    roam@sbnd.net    roam@FreeBSD.org
 PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
 Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
 If wishes were fishes, the antecedent of this conditional would be true.
State-Changed-From-To: open->closed 
State-Changed-By: danfe 
State-Changed-When: Mon Aug 30 08:55:48 GMT 2004 
State-Changed-Why:  
This change is not really worthwhile. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=55794 
>Unformatted:
