diff options
Diffstat (limited to 'ptyim.c')
-rw-r--r-- | ptyim.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -81,6 +81,9 @@ void condition_stdin() { //make it raw cfmakeraw(&stdin_termio); tcsetattr(STDIN_FILENO,TCSANOW,&stdin_termio); + //move cursor to top left and clear screen + write(STDIN_FILENO,"\033[0;0f",6); + write(STDIN_FILENO,"\033[2J", 4); } void restore_stdin() { tcsetattr(STDIN_FILENO,TCSANOW,&stdin_termio_bk); |