summaryrefslogtreecommitdiff
path: root/console-tools
diff options
context:
space:
mode:
author"Vladimir N. Oleynik" <dzo@simtreas.ru>2005-10-12 08:38:28 +0000
committer"Vladimir N. Oleynik" <dzo@simtreas.ru>2005-10-12 08:38:28 +0000
commitffe17b51b4305519d39e6772ce0bc7c564efede7 (patch)
tree4f7fbbdb16977cceddb4b0f03b68df66751a1c97 /console-tools
parentf1ab127077666ceb25e792deb4c4907555f40b84 (diff)
downloadbusybox-w32-ffe17b51b4305519d39e6772ce0bc7c564efede7.tar.gz
busybox-w32-ffe17b51b4305519d39e6772ce0bc7c564efede7.tar.bz2
busybox-w32-ffe17b51b4305519d39e6772ce0bc7c564efede7.zip
correct strange *3 isatty(0) code
Diffstat (limited to 'console-tools')
-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");