diff options
author | Warner Losh <imp@FreeBSD.org> | 2022-02-28 17:17:06 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2022-02-28 17:44:47 +0000 |
commit | 22054f88914b51113f77f6eccc11353a891f9f3e (patch) | |
tree | f101cec0c32321568b37a38eba2ecaa5c3375a88 /usr.bin/systat/main.c | |
parent | dbd330fc1c387542b773475fe55b28e3f7abbdad (diff) | |
download | src-22054f88914b51113f77f6eccc11353a891f9f3e.tar.gz src-22054f88914b51113f77f6eccc11353a891f9f3e.zip |
Diffstat (limited to 'usr.bin/systat/main.c')
-rw-r--r-- | usr.bin/systat/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.bin/systat/main.c b/usr.bin/systat/main.c index 3266fa187714..a52fbd7ebc4d 100644 --- a/usr.bin/systat/main.c +++ b/usr.bin/systat/main.c @@ -155,6 +155,7 @@ main(int argc, char **argv) char errbuf[_POSIX2_LINE_MAX], dummy; size_t size; struct cmdentry *cmd = NULL; + short cf, cb; (void) setlocale(LC_ALL, ""); @@ -214,6 +215,13 @@ main(int argc, char **argv) * routines to minimize update work by curses. */ initscr(); + start_color(); + use_default_colors(); + pair_content(0, &cf, &cb); + init_pair(1, COLOR_GREEN, cb); + init_pair(2, COLOR_MAGENTA, cb); + init_pair(3, COLOR_RED, cb); + init_pair(4, COLOR_BLUE, cb); CMDLINE = LINES - 1; wnd = (*curcmd->c_open)(); if (wnd == NULL) { |