Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 May 1999 18:29:55 -0500 (CDT)
From:      adam@whizkidtech.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/11714: New port: cls-1.0
Message-ID:  <199905142329.SAA16205@whizkidtech.net>

next in thread | raw e-mail | index | archive | help

>Number:         11714
>Category:       ports
>Synopsis:       New port: cls-1.0 (safe version of clear)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 14 16:30:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     G. Adam Stanislav
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
Whiz Kid Technomagic
>Environment:

	

>Description:

This port resulted from a discussion in freebsd-newbies pertaining to the fact
that the `clear' command clears the screen but leaves the scrollback video
buffer untouched.

`cls' works just like `clear' but it first overwrites the scrollback video
buffer with 100 blank lines. This number may be modified as needed (`cls' is
a shell script).

>How-To-Repeat:

	

>Fix:
	
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	cls
#	cls/Makefile
#	cls/files
#	cls/files/md5
#	cls/pkg
#	cls/pkg/PLIST
#	cls/pkg/DESCR
#	cls/pkg/COMMENT
#
echo c - cls
mkdir -p cls > /dev/null 2>&1
echo x - cls/Makefile
sed 's/^X//' >cls/Makefile << 'END-of-cls/Makefile'
X# New ports collection makefile for:	cls
X# Version required:			1.0
X# Date created:				14 May 1999
X# Whom:					G. Adam Stanislav <adam@whizkidtech.net>
X#
X# $Id$
X#
X
XDISTNAME=	cls-1.0
XCATEGORIES=	deskutils
XMASTER_SITES=	http://www.whizkidtech.net/fports/
X
XMAINTAINER=	adam@whizkidtech.net
X
XMAN1=		blanks.1 cls.1
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/blanks ${PREFIX}/bin
X	${INSTALL_SCRIPT} ${WRKSRC}/cls ${PREFIX}/bin
X	$(INSTALL_MAN) ${WRKSRC}/blanks.1 ${PREFIX}/man/man1
X	${INSTALL_MAN} ${WRKSRC}/cls.1 ${PREFIX}/man/man1
X
X.include <bsd.port.mk>
END-of-cls/Makefile
echo c - cls/files
mkdir -p cls/files > /dev/null 2>&1
echo x - cls/files/md5
sed 's/^X//' >cls/files/md5 << 'END-of-cls/files/md5'
XMD5 (cls-1.0.tar.gz) = a15b1f7a0cba22cbf9df9ccb7798b6de
END-of-cls/files/md5
echo c - cls/pkg
mkdir -p cls/pkg > /dev/null 2>&1
echo x - cls/pkg/PLIST
sed 's/^X//' >cls/pkg/PLIST << 'END-of-cls/pkg/PLIST'
Xbin/blanks
Xbin/cls
END-of-cls/pkg/PLIST
echo x - cls/pkg/DESCR
sed 's/^X//' >cls/pkg/DESCR << 'END-of-cls/pkg/DESCR'
XThis package contains the `blanks' command which simply prints any number of
Xblank lines to stdout.
X
XIt also contains the `cls' command which clears both the screen and the scroll
Xback video buffer.
X
XIt is a result of a discussion in freebsd-newbies on how to clear the contents
Xof your work area from prying eyes. It allows you to wipe it all out by using
Xthis command sequence to log out:
X
X	cls;logout
X
XThis software must NOT be used by any of the following:
X
X	a. Military forces of any country;
X	b. Manufacturers, distributors, and resellers of weapons;
X	c. Anyone dealing with mind altering drugs of any kind,
X	   except for strictly medicinal purposes.
X
XPlease respect.
X
XG. Adam Stanislav <adam@whizkidtech.net>
END-of-cls/pkg/DESCR
echo x - cls/pkg/COMMENT
sed 's/^X//' >cls/pkg/COMMENT << 'END-of-cls/pkg/COMMENT'
XSafe clear screen - also wipes scrollback video buffer.
END-of-cls/pkg/COMMENT
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905142329.SAA16205>