diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-04-22 09:01:22 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-06-10 09:21:26 +0100 |
commit | ddc67152a5e8761c3dd5b8807c7fa1b997292e96 (patch) | |
tree | e9e7eff801124931eb0f07757f35831f6eefaa95 /tty-features.c | |
parent | 4cf595a4023acfd9fce2e589f0d01de3e7b5eff7 (diff) | |
download | rtmux-ddc67152a5e8761c3dd5b8807c7fa1b997292e96.tar.gz rtmux-ddc67152a5e8761c3dd5b8807c7fa1b997292e96.tar.bz2 rtmux-ddc67152a5e8761c3dd5b8807c7fa1b997292e96.zip |
Three changes to fix problems with xterm in VT340 mode, reported by Thomas
Sattler.
1) Do not include the DECSLRM or DECFRA features for xterm; they will be added
instead if secondary DA responds as VT420 (this happens already).
2) Set or reset the individual flags after terminal-overrides is applied, so
the user can properly disable them.
3) Add a capability for DECFRA ("Rect").
Diffstat (limited to 'tty-features.c')
-rw-r--r-- | tty-features.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tty-features.c b/tty-features.c index f167a2d3..b42cf74a 100644 --- a/tty-features.c +++ b/tty-features.c @@ -218,9 +218,13 @@ static const struct tty_feature tty_feature_margins = { }; /* Terminal supports DECFRA rectangle fill. */ +static const char *tty_feature_rectfill_capabilities[] = { + "Rect", + NULL +}; static const struct tty_feature tty_feature_rectfill = { "rectfill", - NULL, + tty_feature_rectfill_capabilities, TERM_DECFRA }; @@ -351,8 +355,13 @@ tty_default_features(int *feat, const char *name, u_int version) ",cstyle,extkeys,margins,sync" }, { .name = "XTerm", + /* + * xterm also supports DECSLRM and DECFRA, but they can be + * disabled so not set it here - they will be added if + * secondary DA shows VT420. + */ .features = TTY_FEATURES_BASE_MODERN_XTERM - ",ccolour,cstyle,extkeys,focus,margins,rectfill" + ",ccolour,cstyle,extkeys,focus" } }; u_int i; |