X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/9ef49106fcb71617298e49a65e701a6b19a7cbf2..14963b8ffdc189c7f1e0a5006a23ab5b01ae13d1:/terminal.c diff --git a/terminal.c b/terminal.c index 4ecb39c6..f4669df4 100644 --- a/terminal.c +++ b/terminal.c @@ -665,7 +665,7 @@ void term_out(void) { if (insert) insch (1); check_selection (cpos, cpos+1); - *cpos++ = c | curr_attr | + *cpos++ = xlat_tty2scr((unsigned char)c) | curr_attr | (c <= 0x7F ? cset_attr[cset] : ATTR_ASCII); curs_x++; if (curs_x == cols) { @@ -1436,7 +1436,17 @@ void term_mouse (Mouse_Button b, Mouse_Action a, int x, int y) { !(p <= data+len-sizeof(sel_nl) && !memcmp(p, sel_nl, sizeof(sel_nl)))) p++; - back->send (q, p-q); + + { + int i; + unsigned char c; + for(i=0;isend(&c,1); + } + } + if (p <= data+len-sizeof(sel_nl) && !memcmp(p, sel_nl, sizeof(sel_nl))) { back->send ("\r", 1);