mirror of
https://github.com/jarun/nnn.git
synced 2025-03-12 17:54:04 +00:00
Merge pull request #1204 from N-R-K/mouse_ev
fix: no mouse support inside vim terminal
This commit is contained in:
commit
5f76b69c36
1 changed files with 4 additions and 0 deletions
|
@ -2079,6 +2079,10 @@ static bool initcurses(void *oldmask)
|
|||
//intrflush(stdscr, FALSE);
|
||||
keypad(stdscr, TRUE);
|
||||
#ifndef NOMOUSE
|
||||
#ifndef NOX11
|
||||
printf("\x1b[?1000h\n"); /* xterm X10 mouse mode */
|
||||
printf("\x1b[?1006h\n"); /* extended SGR mouse mode */
|
||||
#endif
|
||||
#if NCURSES_MOUSE_VERSION <= 1
|
||||
mousemask(BUTTON1_PRESSED | BUTTON1_DOUBLE_CLICKED | BUTTON2_PRESSED | BUTTON3_PRESSED,
|
||||
(mmask_t *)oldmask);
|
||||
|
|
Loading…
Add table
Reference in a new issue