… | |
… | |
1220 | |
1220 | |
1221 | =over 4 |
1221 | =over 4 |
1222 | |
1222 | |
1223 | =item B<< C<c> >> |
1223 | =item B<< C<c> >> |
1224 | |
1224 | |
1225 | The literal character c. |
1225 | The literal character c (potentially a multi-byte character). |
1226 | |
1226 | |
1227 | =item B<< C<C> >> |
1227 | =item B<< C<C> >> |
1228 | |
1228 | |
1229 | A single (required) character. |
1229 | A single (required) character. |
1230 | |
1230 | |
… | |
… | |
1917 | B<< C<h> >> Send Mouse X & Y on button press and release, and motion. |
1917 | B<< C<h> >> Send Mouse X & Y on button press and release, and motion. |
1918 | B<< C<l> >> No mouse reporting. |
1918 | B<< C<l> >> No mouse reporting. |
1919 | |
1919 | |
1920 | =end table |
1920 | =end table |
1921 | |
1921 | |
|
|
1922 | =item B<< C<Pm = 1005> >> (X11 XTerm) |
|
|
1923 | |
|
|
1924 | Try to avoid this mode, it doesn't work sensibly in non-UTF-8 locales. Use |
|
|
1925 | mode C<1015> instead. |
|
|
1926 | |
|
|
1927 | Unlike XTerm, coordinates larger than 2015) will work fine. |
|
|
1928 | |
|
|
1929 | =begin table |
|
|
1930 | |
|
|
1931 | B<< C<h> >> Enable mouse coordinates in locale-specific encoding. |
|
|
1932 | B<< C<l> >> Enable mouse coordinates as binary octets. |
|
|
1933 | |
|
|
1934 | =end table |
|
|
1935 | |
1922 | =item B<< C<Pm = 1010> >> (B<rxvt>) |
1936 | =item B<< C<Pm = 1010> >> (B<rxvt>) |
1923 | |
1937 | |
1924 | =begin table |
1938 | =begin table |
1925 | |
1939 | |
1926 | B<< C<h> >> Don't scroll to bottom on TTY output |
1940 | B<< C<h> >> Don't scroll to bottom on TTY output |
… | |
… | |
1932 | |
1946 | |
1933 | =begin table |
1947 | =begin table |
1934 | |
1948 | |
1935 | B<< C<h> >> Scroll to bottom when a key is pressed |
1949 | B<< C<h> >> Scroll to bottom when a key is pressed |
1936 | B<< C<l> >> Don't scroll to bottom when a key is pressed |
1950 | B<< C<l> >> Don't scroll to bottom when a key is pressed |
|
|
1951 | |
|
|
1952 | =end table |
|
|
1953 | |
|
|
1954 | =item B<< C<Pm = 1015> >> (B<rxvt-unicode>) |
|
|
1955 | |
|
|
1956 | Changes all mouse reporting codes to use decimal parameters instead of |
|
|
1957 | octets or characters. |
|
|
1958 | |
|
|
1959 | This mode should be enabled I<before> actually enabling mouse reporting, |
|
|
1960 | for semi-obvious reasons. |
|
|
1961 | |
|
|
1962 | The sequences received for various modes are as follows: |
|
|
1963 | |
|
|
1964 | ESC [ M o o o !1005, !1015 (three octets) |
|
|
1965 | ESC [ M c c c 1005, !1015 (three characters) |
|
|
1966 | ESC [ Pm M 1015 (three or more numeric paramaters) |
|
|
1967 | |
|
|
1968 | The three parameters are C<code>, C<x> and C<y>. Code is the numeric code |
|
|
1969 | as for the other modes (but encoded as a decimal number), C<x> and C<y> |
|
|
1970 | are the coordinates (1|1 is the upper left corner, just as with cursor |
|
|
1971 | positioning). |
|
|
1972 | |
|
|
1973 | Example: Shift-Button-1 press at top row, column 80. |
|
|
1974 | |
|
|
1975 | ESC [ 5 ; 80 ; 1 M |
|
|
1976 | |
|
|
1977 | One can use this feature by simply enabling it and then looking for |
|
|
1978 | parameters to the C<ESC [ M> reply - if there are any, this mode is |
|
|
1979 | active, otherwise one of the old reporting styles is used. |
|
|
1980 | |
|
|
1981 | Other (to be implemented) reply sequences will use a similar encoding. |
|
|
1982 | |
|
|
1983 | In the future, more parameters might get added (pixel coordinates for |
|
|
1984 | example - anybody out there who needs this?). |
|
|
1985 | |
|
|
1986 | =begin table |
|
|
1987 | |
|
|
1988 | B<< C<h> >> Enable new mouse coordinate reporting. |
|
|
1989 | B<< C<l> >> Use old-style C<CSI M C C C> encoding. |
1937 | |
1990 | |
1938 | =end table |
1991 | =end table |
1939 | |
1992 | |
1940 | =item B<< C<Pm = 1021> >> (B<rxvt>) |
1993 | =item B<< C<Pm = 1021> >> (B<rxvt>) |
1941 | |
1994 | |