aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--console-tools/reset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/console-tools/reset.c b/console-tools/reset.c
index 9d38e7a28..5a7e88d7b 100644
--- a/console-tools/reset.c
+++ b/console-tools/reset.c
@@ -30,12 +30,12 @@
30 30
31extern int reset_main(int argc, char **argv) 31extern int reset_main(int argc, char **argv)
32{ 32{
33 if (isatty(0) || isatty(0) || isatty(0)) { 33 if (isatty(1)) {
34 /* See 'man 4 console_codes' for details: 34 /* See 'man 4 console_codes' for details:
35 * "ESC c" -- Reset 35 * "ESC c" -- Reset
36 * "ESC ( K" -- Select user mapping 36 * "ESC ( K" -- Select user mapping
37 * "ESC [ J" -- Erase display 37 * "ESC [ J" -- Erase display
38 * "ESC [ 0 m" -- Reset all Graphics Rendition display attributes 38 * "ESC [ 0 m" -- Reset all display attributes
39 * "ESC [ ? 25 h" -- Make cursor visible. 39 * "ESC [ ? 25 h" -- Make cursor visible.
40 */ 40 */
41 printf("\033c\033(K\033[J\033[0m\033[?25h"); 41 printf("\033c\033(K\033[J\033[0m\033[?25h");