Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/console-tools/reset.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/console-tools/reset.c
r2725 r3232 11 11 /* BTW, which "standard" package has this utility? It doesn't seem 12 12 * to be ncurses, coreutils, console-tools... then what? */ 13 14 //usage:#define reset_trivial_usage 15 //usage: "" 16 //usage:#define reset_full_usage "\n\n" 17 //usage: "Reset the screen" 13 18 14 19 #include "libbb.h" … … 32 37 /* See 'man 4 console_codes' for details: 33 38 * "ESC c" -- Reset 34 * "ESC ( K" -- Select user mapping39 * "ESC ( B" -- Select G0 Character Set (B = US) 35 40 * "ESC [ 0 m" -- Reset all display attributes 36 41 * "ESC [ J" -- Erase to the end of screen 37 42 * "ESC [ ? 25 h" -- Make cursor visible 38 43 */ 39 printf(ESC"c" ESC"( K" ESC"[0m" ESC"[J" ESC"[?25h");44 printf(ESC"c" ESC"(B" ESC"[0m" ESC"[J" ESC"[?25h"); 40 45 /* http://bugs.busybox.net/view.php?id=1414: 41 46 * people want it to reset echo etc: */
Note:
See TracChangeset
for help on using the changeset viewer.