diff options
| author | Michal Idziorek <m.i@gmx.at> | 2015-05-22 03:28:49 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2015-05-22 03:28:49 +0200 |
| commit | fceb15b1d325a7bb0bcab8993a1057cb991172e8 (patch) | |
| tree | ca95bf9b600d8687f2f6307628db4066e485119a /userspace/clear.c | |
| parent | a6184be79e3918764d5e683796afbd8e8ccba018 (diff) | |
support for fg and bg color escape sequences
Diffstat (limited to 'userspace/clear.c')
| -rw-r--r-- | userspace/clear.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/userspace/clear.c b/userspace/clear.c index 09913c3..38efeb6 100644 --- a/userspace/clear.c +++ b/userspace/clear.c @@ -1,9 +1,6 @@ int main() { - for(int i=0;i<24;i++) - { - puts(""); - } - + printf("\033c"); + fflush(0); // force printing to console return 0; } |
