mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +00:00
Add mode 2031 support to automatically report dark or light theme. tmux
will guess the theme from the background colour on terminals which do not themselves support the escape sequence. Written by Jonathan Slenders, GitHub issue 4353.
This commit is contained in:
@ -314,6 +314,12 @@ static struct input_key_entry input_key_defaults[] = {
|
||||
{ .key = KEYC_DC|KEYC_BUILD_MODIFIERS,
|
||||
.data = "\033[3;_~"
|
||||
},
|
||||
{ .key = KEYC_REPORT_DARK_THEME,
|
||||
.data = "\033[?997;1n"
|
||||
},
|
||||
{ .key = KEYC_REPORT_LIGHT_THEME,
|
||||
.data = "\033[?997;2n"
|
||||
},
|
||||
};
|
||||
static const key_code input_key_modifiers[] = {
|
||||
0,
|
||||
|
Reference in New Issue
Block a user