diff --git a/kilo.c b/kilo.c index 406eb7be..7ef1f35d 100644 --- a/kilo.c +++ b/kilo.c @@ -212,6 +212,7 @@ void disableRawMode(int fd) { /* Called at exit to avoid remaining in raw mode. */ void editorAtExit(void) { disableRawMode(STDIN_FILENO); + fprintf(stdout, "\033c"); /* '\033' is same as '\x1b' */ } /* Raw mode: 1960 magic shit. */