diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-16 23:42:13 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-16 23:42:13 +0200 |
commit | d9a3e89f501800c3e7c779b7e9545a5c80134593 (patch) | |
tree | ba3b65ce2d512542a27e78f4820d799008bc0b4c /console-tools/reset.c | |
parent | 26e2c1db0df35df1affa558efc12d2bcfd7718e2 (diff) | |
download | busybox-w32-d9a3e89f501800c3e7c779b7e9545a5c80134593.tar.gz busybox-w32-d9a3e89f501800c3e7c779b7e9545a5c80134593.tar.bz2 busybox-w32-d9a3e89f501800c3e7c779b7e9545a5c80134593.zip |
consolidate ESC sequences
function old new delta
bell 2 - -2
CMdown 2 - -2
Ceos 4 - -4
Ceol 4 - -4
CMup 4 - -4
SOs 5 - -5
SOn 5 - -5
CMrc 9 - -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'console-tools/reset.c')
-rw-r--r-- | console-tools/reset.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/console-tools/reset.c b/console-tools/reset.c index 6917eda42..f0ea5cb20 100644 --- a/console-tools/reset.c +++ b/console-tools/reset.c | |||
@@ -28,11 +28,11 @@ int reset_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | |||
28 | 28 | ||
29 | if (isatty(STDIN_FILENO) && isatty(STDOUT_FILENO)) { | 29 | if (isatty(STDIN_FILENO) && isatty(STDOUT_FILENO)) { |
30 | /* See 'man 4 console_codes' for details: | 30 | /* See 'man 4 console_codes' for details: |
31 | * "ESC c" -- Reset | 31 | * "ESC c" -- Reset |
32 | * "ESC ( K" -- Select user mapping | 32 | * "ESC ( K" -- Select user mapping |
33 | * "ESC [ J" -- Erase display | 33 | * "ESC [ J" -- Erase to the end of screen |
34 | * "ESC [ 0 m" -- Reset all display attributes | 34 | * "ESC [ 0 m" -- Reset all display attributes |
35 | * "ESC [ ? 25 h" -- Make cursor visible. | 35 | * "ESC [ ? 25 h" -- Make cursor visible |
36 | */ | 36 | */ |
37 | printf("\033c\033(K\033[J\033[0m\033[?25h"); | 37 | printf("\033c\033(K\033[J\033[0m\033[?25h"); |
38 | /* http://bugs.busybox.net/view.php?id=1414: | 38 | /* http://bugs.busybox.net/view.php?id=1414: |