diff options
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/fbsplash.c | 4 | ||||
-rw-r--r-- | miscutils/less.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/miscutils/fbsplash.c b/miscutils/fbsplash.c index 5974006bb..e370d207b 100644 --- a/miscutils/fbsplash.c +++ b/miscutils/fbsplash.c | |||
@@ -359,7 +359,7 @@ int fbsplash_main(int argc UNUSED_PARAM, char **argv) | |||
359 | 359 | ||
360 | if (fifo_filename && bCursorOff) { | 360 | if (fifo_filename && bCursorOff) { |
361 | // hide cursor (BEFORE any fb ops) | 361 | // hide cursor (BEFORE any fb ops) |
362 | full_write(STDOUT_FILENO, "\x1b" "[?25l", 6); | 362 | full_write(STDOUT_FILENO, "\033[?25l", 6); |
363 | } | 363 | } |
364 | 364 | ||
365 | fb_drawimage(); | 365 | fb_drawimage(); |
@@ -404,7 +404,7 @@ int fbsplash_main(int argc UNUSED_PARAM, char **argv) | |||
404 | } | 404 | } |
405 | 405 | ||
406 | if (bCursorOff) // restore cursor | 406 | if (bCursorOff) // restore cursor |
407 | full_write(STDOUT_FILENO, "\x1b" "[?25h", 6); | 407 | full_write(STDOUT_FILENO, "\033[?25h", 6); |
408 | 408 | ||
409 | return EXIT_SUCCESS; | 409 | return EXIT_SUCCESS; |
410 | } | 410 | } |
diff --git a/miscutils/less.c b/miscutils/less.c index e4f8ab979..848266212 100644 --- a/miscutils/less.c +++ b/miscutils/less.c | |||
@@ -29,11 +29,11 @@ | |||
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | /* The escape codes for highlighted and normal text */ | 31 | /* The escape codes for highlighted and normal text */ |
32 | #define HIGHLIGHT "\033[7m" | 32 | #define HIGHLIGHT "\033[7m" |
33 | #define NORMAL "\033[0m" | 33 | #define NORMAL "\033[0m" |
34 | /* The escape code to clear the screen */ | 34 | /* The escape code to home and clear to the end of screen */ |
35 | #define CLEAR "\033[H\033[J" | 35 | #define CLEAR "\033[H\033[J" |
36 | /* The escape code to clear to end of line */ | 36 | /* The escape code to clear to the end of line */ |
37 | #define CLEAR_2_EOL "\033[K" | 37 | #define CLEAR_2_EOL "\033[K" |
38 | 38 | ||
39 | enum { | 39 | enum { |