misc/55794: Convenience improvement suggestion: clear screen after ^D (logout) at vty

Alexey Dokuchaev danfe at regency.nsu.ru
Wed Aug 20 02:45:15 PDT 2003


>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 20 02:44:58 PDT 2003
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:


More information about the freebsd-bugs mailing list