diff options
fix: correctly encode mouse buttons >= 8 in X10 and SGR mode
These are typically mapped in X11 to the side-buttons (backward/forwards) on
the mouse. A comparison of the button numbers in SGR mode (first field):
st old:
0 1 2 64 65 66 67 68 69 70
st new (it is the same as xterm now):
0 1 2 64 65 66 67 128 129 130
A script to test and reproduce it, first argument is "h" (on) or "l" (off):
#!/bin/sh
printf '\x1b[?1000%s\x1b[?1006%s' "$1" "$1"
for n in 1 2 3 4 5 6 7 8 9 10; do
printf 'button %d\n' "$n"
xdotool click "$n"
printf '\n\n'
done
Diffstat (limited to '%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d9e68fdbcdb06dfa3d23fe3a7a7f7b59e40e1ea2f%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fshowmsg%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d1%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fshowmsg%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d1%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fshowmsg%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d1%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fid%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fid2%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fshowmsg%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d1%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fid%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%25252525252525252525252525252525252525252525252525252525252525252525252525252525253fshowmsg%25252525252525252525252525252525252525252525252525252525252525252525252525252525253d1%252525252525252525252525252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%2525252525252525252525252525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%25252525252525252525252525252525252525252525252525252525252525252525253fid%25252525252525252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494&id2%25252525252525252525252525252525252525252525252525252525252525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%252525252525252525252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%252525252525252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%2525252525252525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494&id2%2525252525252525252525252525252525252525252525252525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%25252525252525252525252525252525252525252525252525252525253fid%25252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494&id2%25252525252525252525252525252525252525252525252525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%252525252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494&id2%252525252525252525252525252525252525252525252525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%2525252525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494&id2%2525252525252525252525252525252525252525252525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%25252525252525252525252525252525252525252525252525253fid%25252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494&id2%25252525252525252525252525252525252525252525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%2525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%252525252525252525252525252525252525252525253fshowmsg%252525252525252525252525252525252525252525253d1%25252525252525252525252525252525252525253fshowmsg%25252525252525252525252525252525252525253d1%2525252525252525252525252525252525253fid2%2525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%25252525252525252525252525253fid%25252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%252525252525252525252525253fid%252525252525252525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%2525252525252525252525253fid%2525252525252525252525253db02d612aba5c724811990045d12ce04b7da70809%25252525252525252525253fid%25252525252525252525253d5416472bd5c1a19bbdd2d45f665261214d80864c%252525252525252525253fid%252525252525252525253d5416472bd5c1a19bbdd2d45f665261214d80864c%2525252525252525253fid%2525252525252525253d2f6e597ed871cff91c627850d03152cae5f45779%25252525252525253fid%25252525252525253d2f6e597ed871cff91c627850d03152cae5f45779%252525252525253fid%252525252525253d1d3142da968da7f6f61f1c1708f39ca233eda150%2525252525253fid%2525252525253d1d3142da968da7f6f61f1c1708f39ca233eda150%25252525253fid%25252525253d2ec571a30c0c3b1a17f6b3631c80d573582f59a1%252525253fid%252525253d2ec571a30c0c3b1a17f6b3631c80d573582f59a1%2525253fid%2525253d4536f46cfff50c66a115755def0155d8e246b02f%25253fid%25253d9e68fdbcdb06dfa3d23fe3a7a7f7b59e40e1ea2f%253fid%253d9e68fdbcdb06dfa3d23fe3a7a7f7b59e40e1ea2f%3fid%3d9e68fdbcdb06dfa3d23fe3a7a7f7b59e40e1ea2f?id=9e68fdbcdb06dfa3d23fe3a7a7f7b59e40e1ea2f')
0 files changed, 0 insertions, 0 deletions