mirror of https://github.com/martanne/abduco
Mouse CSI if Flag selected
This commit is contained in:
parent
07edd619ee
commit
90282c41f6
2
client.c
2
client.c
|
|
@ -47,7 +47,9 @@ static void client_setup_terminal(void) {
|
||||||
cur_term.c_cc[VMIN] = 1;
|
cur_term.c_cc[VMIN] = 1;
|
||||||
cur_term.c_cc[VTIME] = 0;
|
cur_term.c_cc[VTIME] = 0;
|
||||||
tcsetattr(STDIN_FILENO, TCSANOW, &cur_term);
|
tcsetattr(STDIN_FILENO, TCSANOW, &cur_term);
|
||||||
|
if (mouse) {
|
||||||
printf("\x1b[?1002h\x1b[?1006h");
|
printf("\x1b[?1002h\x1b[?1006h");
|
||||||
|
}
|
||||||
|
|
||||||
if (!alternate_buffer) {
|
if (!alternate_buffer) {
|
||||||
printf("\033[?1049h\033[H");
|
printf("\033[?1049h\033[H");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue