diff options
| author | Michal Idziorek <m.i@gmx.at> | 2015-05-24 04:00:01 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2015-05-24 04:00:01 +0200 |
| commit | 1b64f1e69bfbffc0e70ba3a1baff00ed3fd8cb51 (patch) | |
| tree | ff2a2deeb3e4184756d6883d3ac3c08cc42aa795 /userspace | |
| parent | fbbbc75200008e2b603e5b7df8cd2e1a5d17483b (diff) | |
experimenting with brand new gaming mode
Diffstat (limited to 'userspace')
| -rw-r--r-- | userspace/snake.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/userspace/snake.c b/userspace/snake.c index 8352d1b..7deaa6c 100644 --- a/userspace/snake.c +++ b/userspace/snake.c @@ -9,10 +9,18 @@ int main() while(1) { + uint8_t x=0; + while(!has_data_waiting()) { + x++; + putc('\b',stdout); + if(x%4==0)putc('/',stdout); + if(x%4==1)putc('-',stdout); + if(x%4==2)putc('\\',stdout); + if(x%4==3)putc('|',stdout); } char c=fgetc(stdin); |
