Skip to content

Commit

Permalink
Clear screen after pressing CTRL-Q
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenZhengHao committed Nov 6, 2023
1 parent ea2bb08 commit c8d7bee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kilo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,7 @@ void editorClearScreen(void) {
struct abuf ab = ABUF_INIT;
abAppend(&ab,"\x1b[J", E.numrows);
write(STDOUT_FILENO,ab.b,ab.len);
abFree(&ab);
}

/* Set an editor status message for the second line of the status, at the
Expand Down

0 comments on commit c8d7bee

Please sign in to comment.