From 57c5eceb846f3109d017b4e6d4cbd7c507c0d098 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 14 Mar 2015 16:16:53 +0100 Subject: Begin implement escape sequence handling in terminal. --- src/sysbin/shell/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sysbin/shell') diff --git a/src/sysbin/shell/main.c b/src/sysbin/shell/main.c index b093430..e35d700 100644 --- a/src/sysbin/shell/main.c +++ b/src/sysbin/shell/main.c @@ -53,9 +53,11 @@ int main(int argc, char **argv) { while(true) { char buf[256]; - printf("\n%s> ", getcwd(buf, 256)); + printf("\n\e[36m%s>\e[33m ", getcwd(buf, 256)); getline(buf, 256); + + printf("\e[39m"); if (!strncmp(buf, "cd ", 3)) { chdir(buf + 3); } else if (!strcmp(buf, "ls")) { -- cgit v1.2.3