summaryrefslogtreecommitdiff
path: root/%25252525253fid%25252525253d4536f46cfff50c66a115755def0155d8e246b02f%25252525...
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2021-03-19 11:54:36 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2021-03-19 11:58:59 +0100
commit9e68fdbcdb06dfa3d23fe3a7a7f7b59e40e1ea2f (patch)
treef3ba82d15da9608f9b0f4c70b3881d78424cb2a6 /%25252525253fid%25252525253d4536f46cfff50c66a115755def0155d8e246b02f%252525253fid%252525253d4536f46cfff50c66a115755def0155d8e246b02f%2525253fid%2525253d4536f46cfff50c66a115755def0155d8e246b02f%25253fid%25253d4536f46cfff50c66a115755def0155d8e246b02f%253fid%253d4536f46cfff50c66a115755def0155d8e246b02f%3fid%3d4536f46cfff50c66a115755def0155d8e246b02f?id=9e68fdbcdb06dfa3d23fe3a7a7f7b59e40e1ea2f
parent4ef0cbd8b9371f37f7d02ef37b5378b879e6b8bf (diff)
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 '%25252525253fid%25252525253d4536f46cfff50c66a115755def0155d8e246b02f%252525253fid%252525253d4536f46cfff50c66a115755def0155d8e246b02f%2525253fid%2525253d4536f46cfff50c66a115755def0155d8e246b02f%25253fid%25253d4536f46cfff50c66a115755def0155d8e246b02f%253fid%253d4536f46cfff50c66a115755def0155d8e246b02f%3fid%3d4536f46cfff50c66a115755def0155d8e246b02f?id=9e68fdbcdb06dfa3d23fe3a7a7f7b59e40e1ea2f')
0 files changed, 0 insertions, 0 deletions