28 |
|
|
29 |
if (isatty(STDIN_FILENO) && isatty(STDOUT_FILENO)) { |
if (isatty(STDIN_FILENO) && isatty(STDOUT_FILENO)) { |
30 |
/* See 'man 4 console_codes' for details: |
/* See 'man 4 console_codes' for details: |
31 |
* "ESC c" -- Reset |
* "ESC c" -- Reset |
32 |
* "ESC ( K" -- Select user mapping |
* "ESC ( K" -- Select user mapping |
33 |
* "ESC [ J" -- Erase display |
* "ESC [ J" -- Erase to the end of screen |
34 |
* "ESC [ 0 m" -- Reset all display attributes |
* "ESC [ 0 m" -- Reset all display attributes |
35 |
* "ESC [ ? 25 h" -- Make cursor visible. |
* "ESC [ ? 25 h" -- Make cursor visible |
36 |
*/ |
*/ |
37 |
printf("\033c\033(K\033[J\033[0m\033[?25h"); |
printf("\033c\033(K\033[J\033[0m\033[?25h"); |
38 |
/* http://bugs.busybox.net/view.php?id=1414: |
/* http://bugs.busybox.net/view.php?id=1414: |