From: jacob Date: Sat, 20 Dec 2008 18:52:09 +0000 (+0000) Subject: Cosmetic: clarify that term->xterm_mouse is not boolean, etc. X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/0fab03157f12ec8fa28404700cd7bbb67c26b8c2 Cosmetic: clarify that term->xterm_mouse is not boolean, etc. git-svn-id: svn://svn.tartarus.org/sgt/putty@8374 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/terminal.c b/terminal.c index 3a2ab620..ef40de2b 100644 --- a/terminal.c +++ b/terminal.c @@ -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; diff --git a/terminal.h b/terminal.h index 4288d618..aef47a5b 100644 --- a/terminal.h +++ b/terminal.h @@ -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];