diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-24 07:13:02 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-24 07:13:02 +0100 |
commit | 5d69b9c4a7e8adc570e965189de0e5936fbf8e1c (patch) | |
tree | 6c19d518fefb16b0a1f78ecaeacf8a8f161bf039 /tty-term.c | |
parent | 2d8fd35de2c15b376dac41f9a1e6a62b22018976 (diff) | |
download | rtmux-5d69b9c4a7e8adc570e965189de0e5936fbf8e1c.tar.gz rtmux-5d69b9c4a7e8adc570e965189de0e5936fbf8e1c.tar.bz2 rtmux-5d69b9c4a7e8adc570e965189de0e5936fbf8e1c.zip |
Add a feature for bracketed paste.
Diffstat (limited to 'tty-term.c')
-rw-r--r-- | tty-term.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -86,6 +86,7 @@ static const struct tty_term_code_entry tty_term_codes[] = { [TTYC_DIM] = { TTYCODE_STRING, "dim" }, [TTYC_DL1] = { TTYCODE_STRING, "dl1" }, [TTYC_DL] = { TTYCODE_STRING, "dl" }, + [TTYC_DSBP] = { TTYCODE_STRING, "Dsbp" }, [TTYC_DSMG] = { TTYCODE_STRING, "Dsmg" }, [TTYC_E3] = { TTYCODE_STRING, "E3" }, [TTYC_ECH] = { TTYCODE_STRING, "ech" }, @@ -93,6 +94,7 @@ static const struct tty_term_code_entry tty_term_codes[] = { [TTYC_EL1] = { TTYCODE_STRING, "el1" }, [TTYC_EL] = { TTYCODE_STRING, "el" }, [TTYC_ENACS] = { TTYCODE_STRING, "enacs" }, + [TTYC_ENBP] = { TTYCODE_STRING, "Enbp" }, [TTYC_ENMG] = { TTYCODE_STRING, "Enmg" }, [TTYC_FSL] = { TTYCODE_STRING, "fsl" }, [TTYC_HOME] = { TTYCODE_STRING, "home" }, @@ -561,11 +563,11 @@ tty_term_create(struct tty *tty, char *name, int *feat, int fd, char **cause) if ((tty_term_flag(term, TTYC_TC) || tty_term_has(term, TTYC_RGB)) && (!tty_term_has(term, TTYC_SETRGBF) || !tty_term_has(term, TTYC_SETRGBB))) - tty_add_features(feat, "RGB", ":,"); + tty_add_features(feat, "RGB", ","); - /* Add feature if terminal has XT. */ + /* Add some features if terminal has XT. */ if (tty_term_flag(term, TTYC_XT)) - tty_add_features(feat, "title", ":,"); + tty_add_features(feat, "bpaste,title", ","); /* Apply the features and overrides again. */ tty_apply_features(term, *feat); |