From 033def321866592caa3278af3e067f05addbbc93 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Sat, 18 Dec 2021 23:23:28 -0800 Subject: Added a NOANSI option --- src/sys/timer.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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); } } -- cgit v1.2.1