1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Cosmetic: clarify that term->xterm_mouse is not boolean, etc.

[originally from svn r8374]
This commit is contained in:
Jacob Nevins 2008-12-20 18:52:09 +00:00
parent 742e65d66b
commit 0e202b3dcc
2 changed files with 4 additions and 4 deletions

View File

@ -1223,7 +1223,7 @@ static void power_on(Terminal *term, int clear)
term->erase_char = term->basic_erase_char;
term->alt_which = 0;
term_print_finish(term);
term->xterm_mouse = FALSE;
term->xterm_mouse = 0;
set_raw_mouse_mode(term->frontend, FALSE);
{
int i;
@ -2385,11 +2385,11 @@ static void toggle_mode(Terminal *term, int mode, int query, int state)
swap_screen(term, term->cfg.no_alt_screen ? 0 : state, FALSE, FALSE);
term->disptop = 0;
break;
case 1000: /* xterm mouse 1 */
case 1000: /* xterm mouse 1 (normal) */
term->xterm_mouse = state ? 1 : 0;
set_raw_mouse_mode(term->frontend, state);
break;
case 1002: /* xterm mouse 2 */
case 1002: /* xterm mouse 2 (inc. button drags) */
term->xterm_mouse = state ? 2 : 0;
set_raw_mouse_mode(term->frontend, state);
break;

View File

@ -151,7 +151,7 @@ struct terminal_tag {
int seen_disp_event;
int big_cursor;
int xterm_mouse; /* send mouse messages to app */
int xterm_mouse; /* send mouse messages to host */
int mouse_is_down; /* used while tracking mouse buttons */
int cset_attr[2];