diff options
author | Sami Kerola | 2015-06-12 22:25:08 +0200 |
---|---|---|
committer | Karel Zak | 2015-06-29 12:06:22 +0200 |
commit | 14867b0f723ab98821f5535561342d7c76fc28f3 (patch) | |
tree | 8c7bdef3635105b06c2e635f6de18e89c6815920 | |
parent | getopt: use $(...) command substitution in example script [shellcheck] (diff) | |
download | kernel-qcow2-util-linux-14867b0f723ab98821f5535561342d7c76fc28f3.tar.gz kernel-qcow2-util-linux-14867b0f723ab98821f5535561342d7c76fc28f3.tar.xz kernel-qcow2-util-linux-14867b0f723ab98821f5535561342d7c76fc28f3.zip |
reset: deprecate the script, and remove reset.033c
Most distributions probably ship reset from ncurses, which means
util-linux reset(1) is unlikely to be in use anywhere. Assuming the
previous being true it is almost unimaginable anyone one would be using
the alternative script, so remove it and mark the script deprecated.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
-rw-r--r-- | Documentation/deprecated.txt | 5 | ||||
-rw-r--r-- | term-utils/Makemodule.am | 1 | ||||
-rwxr-xr-x | term-utils/reset | 6 | ||||
-rwxr-xr-x | term-utils/reset.033c | 11 |
4 files changed, 11 insertions, 12 deletions
diff --git a/Documentation/deprecated.txt b/Documentation/deprecated.txt index a32833fd0..e63675a4b 100644 --- a/Documentation/deprecated.txt +++ b/Documentation/deprecated.txt @@ -93,6 +93,11 @@ 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 diff --git a/term-utils/Makemodule.am b/term-utils/Makemodule.am index c56631802..ea1affcdc 100644 --- a/term-utils/Makemodule.am +++ b/term-utils/Makemodule.am @@ -55,7 +55,6 @@ if BUILD_RESET dist_usrbin_exec_SCRIPTS += term-utils/reset dist_man_MANS += term-utils/reset.1 endif -EXTRA_DIST += term-utils/reset.033c if BUILD_MESG diff --git a/term-utils/reset b/term-utils/reset index 68de82eb1..43f83cbda 100755 --- a/term-utils/reset +++ b/term-utils/reset @@ -1,4 +1,10 @@ #!/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 diff --git a/term-utils/reset.033c b/term-utils/reset.033c deleted file mode 100755 index fc7fad6b1..000000000 --- a/term-utils/reset.033c +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -stty sane -tput clear -tput rmacs -tput rmm -tput rmso -tput rmul -tput rs1 -tput rs2 -tput rs3 -printf "\\033c\n" |