reset: remove script from the package

This script requires ncurses to work, and the ncurses provides reset so
there should not be need to keep this script hanging around.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2017-06-24 12:09:34 +01:00
parent 8ffa3b651d
commit 8e58889065
No known key found for this signature in database
GPG Key ID: A9553245FDE9B739
5 changed files with 0 additions and 83 deletions

View File

@ -93,11 +93,6 @@ Why: parallel port printers are probably almost extinct devices
----------------------------
What: reset
Why: ncurses has better reset(1)
----------------------------
The Single UNIX(TM) Specification, Version 2
Copyright (C) 1997 The Open Group

View File

@ -1741,14 +1741,6 @@ UL_BUILD_INIT([rename])
AM_CONDITIONAL([BUILD_RENAME], [test "x$build_rename" = xyes])
AC_ARG_ENABLE([reset],
AS_HELP_STRING([--enable-reset], [build reset]),
[], [UL_DEFAULT_ENABLE([reset], [no])]
)
UL_BUILD_INIT([reset])
AM_CONDITIONAL([BUILD_RESET], [test "x$build_reset" = xyes])
AC_ARG_ENABLE([vipw],
AS_HELP_STRING([--enable-vipw], [build vipw]),
[], [UL_DEFAULT_ENABLE([vipw], [no])]

View File

@ -52,12 +52,6 @@ endif
endif
if BUILD_RESET
dist_usrbin_exec_SCRIPTS += term-utils/reset
dist_man_MANS += term-utils/reset.1
endif
if BUILD_MESG
usrbin_exec_PROGRAMS += mesg
dist_man_MANS += term-utils/mesg.1

View File

@ -1,19 +0,0 @@
#!/bin/sh
# This command is deprecated. The utility is in maintenance mode,
# meaning we keep them in source tree for backward compatibility
# only. Do not waste time making this command better, unless the
# fix is about security or other very critical issue.
#
# See Documentation/deprecated.txt for more information.
stty sane
tput clear
tput rmacs
tput rmm
tput rmso
tput rmul
tput rs1
tput rs2
tput rs3
bot=$((${LINES:-$(tput lines)} - 1))
if test "${bot}" -le "0"; then bot=24; fi
tput csr 0 ${bot}

View File

@ -1,45 +0,0 @@
.\" Copyright 1992 Rickard E. Faith (faith@cs.unc.edu)
.\" May be distributed under the GNU General Public License
.TH RESET 1 "October 1993" "util-linux" "User Commands"
.SH NAME
reset \- reset the terminal
.SH SYNOPSIS
.BR reset
.SH DESCRIPTION
.B reset
calls
.BR tput (1)
with the
.IR clear ,
.IR rmacs ,
.IR rmm ,
.IR rmul ,
.IR rs1 ,
.IR rs2 ,
and
.I rs3
arguments. This causes
.B tput
to send appropriate reset strings to the terminal based on information in
.I /etc/termcap
(for the GNU or BSD
.BR tput )
or in the terminfo database
(for the
.B ncurses
.BR tput ).
This sequence seems to be sufficient to reset a Linux VC when it
starts printing "funny-looking" characters. For good measure,
.BR stty (1)
is called with the
.I sane
argument in an attempt to get cooked mode back.
.SH "SEE ALSO"
.BR clear (1),
.BR stty (1),
.BR tput (1)
.SH AUTHOR
Rik Faith (faith@cs.unc.edu)
.SH AVAILABILITY
The reset command is part of the util-linux package and is available from
https://www.kernel.org/pub/linux/utils/util-linux/.