… | |
… | |
3278 | { |
3278 | { |
3279 | case '>': |
3279 | case '>': |
3280 | if (ch == CSI_DA) /* secondary device attributes */ |
3280 | if (ch == CSI_DA) /* secondary device attributes */ |
3281 | { |
3281 | { |
3282 | // first parameter is normally 0 for vt100, 1 for some newer vtxxx, 'R' for rxvt, |
3282 | // first parameter is normally 0 for vt100, 1 for some newer vtxxx, 'R' for rxvt, |
3283 | // 'U' for rxvt-unicode <= 7.2. |
3283 | // 'U' for rxvt-unicode != 7.[34] (where it was broken). |
3284 | // |
3284 | // |
3285 | // second parameter is xterm patch level for xterm, MMmmpp (e.g. 20703) for rxvt |
3285 | // second parameter is xterm patch level for xterm, MMmmpp (e.g. 20703) for rxvt |
3286 | // and Mm (e.g. 72 for 7.2) for urxvt <= 7.2, and 94 for later versions, to signify |
3286 | // and Mm (e.g. 72 for 7.2) for urxvt <= 7.2, and 94 for later versions, to signify |
3287 | // that we do not support xterm mouse reporting (should be 95 when we do). |
3287 | // that we do not support xterm mouse reporting (should be 95 when we do). |
3288 | // |
3288 | // |
3289 | tt_printf ("\033[>0;94;0c"); |
3289 | tt_printf ("\033[>%d;94;0c", 'U'); |
3290 | } |
3290 | } |
3291 | break; |
3291 | break; |
3292 | case '?': |
3292 | case '?': |
3293 | if (ch == 'h' || ch == 'l' || ch == 'r' || ch == 's' || ch == 't') |
3293 | if (ch == 'h' || ch == 'l' || ch == 'r' || ch == 's' || ch == 't') |
3294 | process_terminal_mode (ch, priv, nargs, arg); |
3294 | process_terminal_mode (ch, priv, nargs, arg); |