Mouse CSI if Flag selected

This commit is contained in:
Brandon Shockley 2021-08-02 16:00:48 -04:00 committed by GitHub
parent 07edd619ee
commit 90282c41f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,9 @@ static void client_setup_terminal(void) {
cur_term.c_cc[VMIN] = 1;
cur_term.c_cc[VTIME] = 0;
tcsetattr(STDIN_FILENO, TCSANOW, &cur_term);
printf("\x1b[?1002h\x1b[?1006h");
if (mouse) {
printf("\x1b[?1002h\x1b[?1006h");
}
if (!alternate_buffer) {
printf("\033[?1049h\033[H");