diff options
author | Alex Auvolat <alex@adnab.me> | 2015-03-14 16:16:53 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2015-03-14 16:16:53 +0100 |
commit | 57c5eceb846f3109d017b4e6d4cbd7c507c0d098 (patch) | |
tree | d4aa0917310a5ad7925736f9dadc07bcb5734383 /src/sysbin/shell | |
parent | f574c22f86d90f735107fda199bb5b4982cd9621 (diff) | |
download | kogata-57c5eceb846f3109d017b4e6d4cbd7c507c0d098.tar.gz kogata-57c5eceb846f3109d017b4e6d4cbd7c507c0d098.zip |
Begin implement escape sequence handling in terminal.
Diffstat (limited to 'src/sysbin/shell')
-rw-r--r-- | src/sysbin/shell/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
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")) { |