summaryrefslogtreecommitdiffstats
path: root/tty-term.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-05-18 20:24:29 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-05-18 20:24:29 +0000
commit96e7f33da3078facc504c6c66d42956bc44b2e54 (patch)
treeca4c6e2cabdc24c01120f551081399abfc92baf7 /tty-term.c
parent58908fd8c54a3c8d2878a7c6f9ca566093302f92 (diff)
Support setting the xterm clipboard when copying from copy mode using
the xterm escape sequence for the purpose (if xterm is configured to allow it). Written by and much discussed Ailin Nemui, guidance on xterm/termcap/terminfo from Thomas Dickey.
Diffstat (limited to 'tty-term.c')
-rw-r--r--tty-term.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tty-term.c b/tty-term.c
index f1e6d878..7ad4628f 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -163,6 +163,7 @@ const struct tty_term_code_entry tty_term_codes[NTTYCODE] = {
{ TTYC_KUP5, TTYCODE_STRING, "kUP5" },
{ TTYC_KUP6, TTYCODE_STRING, "kUP6" },
{ TTYC_KUP7, TTYCODE_STRING, "kUP7" },
+ { TTYC_MS, TTYCODE_STRING, "Ms" },
{ TTYC_OP, TTYCODE_STRING, "op" },
{ TTYC_REV, TTYCODE_STRING, "rev" },
{ TTYC_RI, TTYCODE_STRING, "ri" },
@@ -492,6 +493,12 @@ tty_term_string2(struct tty_term *term, enum tty_code_code code, int a, int b)
return (tparm((char *) tty_term_string(term, code), a, b));
}
+const char *
+tty_term_ptr2(struct tty_term *term, enum tty_code_code code, const void *a, const void *b)
+{
+ return (tparm((char *) tty_term_string(term, code), a, b));
+}
+
int
tty_term_number(struct tty_term *term, enum tty_code_code code)
{