aboutsummaryrefslogtreecommitdiff
path: root/src/sysbin/shell/main.c
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2015-03-14 16:16:53 +0100
committerAlex Auvolat <alex@adnab.me>2015-03-14 16:16:53 +0100
commit57c5eceb846f3109d017b4e6d4cbd7c507c0d098 (patch)
treed4aa0917310a5ad7925736f9dadc07bcb5734383 /src/sysbin/shell/main.c
parentf574c22f86d90f735107fda199bb5b4982cd9621 (diff)
downloadkogata-57c5eceb846f3109d017b4e6d4cbd7c507c0d098.tar.gz
kogata-57c5eceb846f3109d017b4e6d4cbd7c507c0d098.zip
Begin implement escape sequence handling in terminal.
Diffstat (limited to 'src/sysbin/shell/main.c')
-rw-r--r--src/sysbin/shell/main.c4
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")) {