]> xenbits.xensource.com Git - people/liuw/rumprun.git/commitdiff
support \t in console output
authorAntti Kantee <pooka@iki.fi>
Thu, 23 Apr 2015 22:20:50 +0000 (22:20 +0000)
committerAntti Kantee <pooka@iki.fi>
Thu, 23 Apr 2015 22:20:50 +0000 (22:20 +0000)
platform/baremetal/kernel.c

index 9e84a08b0e34bf160f71e1c6f06259b1b8a3359c..de67c4080116dbc52dbb2302d0e337a186e38b72 100644 (file)
@@ -238,6 +238,8 @@ bmk_cons_putc(int c)
                doclear = 1;
        } else if (c == '\r') {
                cons_x = 0;
+       } else if (c == '\t') {
+               cons_x = (cons_x+8) & ~7;
        } else {
                cons_putat(c, cons_x++, cons_y);
        }