diff options
author | Christian Cunningham <cc@localhost> | 2021-12-18 23:23:28 -0800 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2021-12-18 23:23:28 -0800 |
commit | 033def321866592caa3278af3e067f05addbbc93 (patch) | |
tree | b2b62ee76f79e65c778ce4d78803b72d2de13646 | |
parent | 6d1a74d66fb0f2dbe2440bdf6459d1eca1397361 (diff) |
Added a NOANSI option
-rw-r--r-- | src/sys/timer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sys/timer.c b/src/sys/timer.c index 13ce317..f4013d4 100644 --- a/src/sys/timer.c +++ b/src/sys/timer.c @@ -25,11 +25,19 @@ void c_timer() { // Lock the execution counter if (lock_mutex(&exe_cnt_m, SCHED_PID) == 0) { *(exe_cnt_m.addr) += 1; +#ifndef NOANSI uart_string("\033[?25l\033[s\033[1;1H\033[91mDendritOS \033[96mv"); +#else + uart_string("\033[?25l\033[1;1H\033[91mDendritOS \033[96mv"); +#endif uart_string(os_info_v); uart_string("\033[0m #"); uart_10(*(exe_cnt_m.addr)); +#ifndef NOANSI uart_string("\033[u\033[?25h"); +#else + uart_string("\033[8;1H\033[?25h> "); +#endif release_mutex(&exe_cnt_m, SCHED_PID); } } |