… | |
… | |
2812 | unicode_t ch, priv, i; |
2812 | unicode_t ch, priv, i; |
2813 | unsigned int nargs, p; |
2813 | unsigned int nargs, p; |
2814 | int n, ndef; |
2814 | int n, ndef; |
2815 | int arg[ESC_ARGS]; |
2815 | int arg[ESC_ARGS]; |
2816 | |
2816 | |
2817 | for (nargs = ESC_ARGS; nargs > 0;) |
2817 | memset (arg, 0, sizeof (arg)); |
2818 | arg[--nargs] = 0; |
2818 | nargs = 0; |
2819 | |
2819 | |
2820 | priv = 0; |
2820 | priv = 0; |
2821 | ch = cmd_getc (); |
2821 | ch = cmd_getc (); |
2822 | if (ch >= '<' && ch <= '?') |
2822 | if (ch >= '<' && ch <= '?') |
2823 | { /* '<' '=' '>' '?' */ |
2823 | { /* '<' '=' '>' '?' */ |
… | |
… | |
2867 | switch (priv) |
2867 | switch (priv) |
2868 | { |
2868 | { |
2869 | case '>': |
2869 | case '>': |
2870 | if (ch == CSI_DA) /* secondary device attributes */ |
2870 | if (ch == CSI_DA) /* secondary device attributes */ |
2871 | { |
2871 | { |
2872 | // first parameter is normally 0 for vt100, 1 for some newer vtxxx, 'R' for rxvt, |
2872 | // first parameter is normally 0 for vt100, 1 for vt220, 'R' for rxvt, |
2873 | // 'U' for rxvt-unicode != 7.[34] (where it was broken). |
2873 | // 'U' for rxvt-unicode != 7.[34] (where it was broken). |
2874 | // |
2874 | // |
2875 | // second parameter is xterm patch level for xterm, MMmmpp (e.g. 20703) for rxvt |
2875 | // second parameter is xterm patch level for xterm, MMmmpp (e.g. 20703) for rxvt |
2876 | // and Mm (e.g. 72 for 7.2) for urxvt <= 7.2, and 94 for later versions, to signify |
2876 | // and Mm (e.g. 72 for 7.2) for urxvt <= 7.2, and 94 for later versions, to signify |
2877 | // that we do not support xterm mouse reporting (should be 95 when we do). |
2877 | // that we do not support xterm mouse reporting (should be 95 when we do). |