projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1ab127
)
correct strange *3 isatty(0) code
author
"Vladimir N. Oleynik"
<dzo@simtreas.ru>
Wed, 12 Oct 2005 08:38:28 +0000
(08:38 -0000)
committer
"Vladimir N. Oleynik"
<dzo@simtreas.ru>
Wed, 12 Oct 2005 08:38:28 +0000
(08:38 -0000)
console-tools/reset.c
patch
|
blob
|
history
diff --git
a/console-tools/reset.c
b/console-tools/reset.c
index 9d38e7a28287657b7072dcee460ea2f8e64232a0..5a7e88d7bfb340c1ffa1fc76dce79378433f5005 100644
(file)
--- a/
console-tools/reset.c
+++ b/
console-tools/reset.c
@@
-30,12
+30,12
@@
extern int reset_main(int argc, char **argv)
{
- if (isatty(
0) || isatty(0) || isatty(0
)) {
+ if (isatty(
1
)) {
/* See 'man 4 console_codes' for details:
* "ESC c" -- Reset
* "ESC ( K" -- Select user mapping
* "ESC [ J" -- Erase display
- * "ESC [ 0 m" -- Reset all
Graphics Rendition
display attributes
+ * "ESC [ 0 m" -- Reset all display attributes
* "ESC [ ? 25 h" -- Make cursor visible.
*/
printf("\033c\033(K\033[J\033[0m\033[?25h");