Implement very bad state machine to match a subset of ANSI escape codes.

This commit is contained in:
2019-04-04 21:46:17 -07:00
parent dd3281aba0
commit f00ab71fb5
2 changed files with 62 additions and 1 deletions

View File

@@ -38,6 +38,14 @@ i386_init(void)
// Test the stack backtrace function (lab 1 only)
test_backtrace(5);
// Test ANSI color escape codes
cprintf("\33[31m" "C"
"\33[33m" "o"
"\33[32m" "l"
"\33[36m" "o"
"\33[34m" "r"
"\33[0m" " Works!" "\n");
// Drop into the kernel monitor.
while (1)
monitor(NULL);