Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions kilo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,9 @@ void editorProcessKeypress(int fd) {
quit_times--;
return;
}
write(STDOUT_FILENO,"\033[2J",4);
write(STDOUT_FILENO,"\033[?1;47l",8);
write(STDOUT_FILENO,"\0338",2);
exit(0);
break;
case CTRL_S: /* Ctrl-s */
Expand Down Expand Up @@ -1275,6 +1278,8 @@ void handleSigWinCh(int unused __attribute__((unused))) {
}

void initEditor(void) {
write(STDOUT_FILENO,"\0337",2);
write(STDOUT_FILENO,"\033[?1;47h",8);
E.cx = 0;
E.cy = 0;
E.rowoff = 0;
Expand Down