From 5af7b47284b63715e1599b07873ebeb5f9edb257 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 1 Jul 2025 21:16:58 -0400 Subject: kernel: console: Introduce cons_screen features Introduce a 'feat' field in the cons_screen structure to allow certain console features to be turned on or off. Signed-off-by: Ian Moffett --- sys/dev/cons/cons.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/dev/cons/cons.c') diff --git a/sys/dev/cons/cons.c b/sys/dev/cons/cons.c index 8470a60..3eb7c33 100644 --- a/sys/dev/cons/cons.c +++ b/sys/dev/cons/cons.c @@ -488,7 +488,10 @@ void cons_init(void) { struct fbdev fbdev = fbdev_get(); + struct console_feat *featp; + featp = &g_root_scr.feat; + featp->ansi_esc = 1; g_root_scr.ch_col = 0; g_root_scr.ch_row = 0; g_root_scr.fg = CONSOLE_FG; -- cgit v1.2.3