diff options
Diffstat (limited to 'procps/top.c')
-rw-r--r-- | procps/top.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/procps/top.c b/procps/top.c index f5c0a123f..e4afafc4c 100644 --- a/procps/top.c +++ b/procps/top.c | |||
@@ -478,8 +478,8 @@ static unsigned long display_header(int scr_width, int *lines_rem_p) | |||
478 | snprintf(scrbuf, scr_width, | 478 | snprintf(scrbuf, scr_width, |
479 | "Mem: %luK used, %luK free, %luK shrd, %luK buff, %luK cached", | 479 | "Mem: %luK used, %luK free, %luK shrd, %luK buff, %luK cached", |
480 | used, mfree, shared, buffers, cached); | 480 | used, mfree, shared, buffers, cached); |
481 | /* clear screen & go to top */ | 481 | /* go to top & clear to the end of screen */ |
482 | printf(OPT_BATCH_MODE ? "%s\n" : "\e[H\e[J%s\n", scrbuf); | 482 | printf(OPT_BATCH_MODE ? "%s\n" : "\033[H\033[J%s\n", scrbuf); |
483 | (*lines_rem_p)--; | 483 | (*lines_rem_p)--; |
484 | 484 | ||
485 | /* Display CPU time split as percentage of total time | 485 | /* Display CPU time split as percentage of total time |
@@ -518,7 +518,7 @@ static NOINLINE void display_process_list(int lines_rem, int scr_width) | |||
518 | #endif | 518 | #endif |
519 | 519 | ||
520 | /* what info of the processes is shown */ | 520 | /* what info of the processes is shown */ |
521 | printf(OPT_BATCH_MODE ? "%.*s" : "\e[7m%.*s\e[0m", scr_width, | 521 | printf(OPT_BATCH_MODE ? "%.*s" : "\033[7m%.*s\033[0m", scr_width, |
522 | " PID PPID USER STAT VSZ %MEM" | 522 | " PID PPID USER STAT VSZ %MEM" |
523 | IF_FEATURE_TOP_SMP_PROCESS(" CPU") | 523 | IF_FEATURE_TOP_SMP_PROCESS(" CPU") |
524 | IF_FEATURE_TOP_CPU_USAGE_PERCENTAGE(" %CPU") | 524 | IF_FEATURE_TOP_CPU_USAGE_PERCENTAGE(" %CPU") |
@@ -772,7 +772,7 @@ static void display_topmem_header(int scr_width, int *lines_rem_p) | |||
772 | snprintf(linebuf, sizeof(linebuf), | 772 | snprintf(linebuf, sizeof(linebuf), |
773 | "Mem total:%s anon:%s map:%s free:%s", | 773 | "Mem total:%s anon:%s map:%s free:%s", |
774 | S(total), S(anon), S(map), S(mfree)); | 774 | S(total), S(anon), S(map), S(mfree)); |
775 | printf(OPT_BATCH_MODE ? "%.*s\n" : "\e[H\e[J%.*s\n", scr_width, linebuf); | 775 | printf(OPT_BATCH_MODE ? "%.*s\n" : "\033[H\033[J%.*s\n", scr_width, linebuf); |
776 | 776 | ||
777 | snprintf(linebuf, sizeof(linebuf), | 777 | snprintf(linebuf, sizeof(linebuf), |
778 | " slab:%s buf:%s cache:%s dirty:%s write:%s", | 778 | " slab:%s buf:%s cache:%s dirty:%s write:%s", |