From 89f35125b4eb5c032f57e8acb70274b77e887f0b Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Sun, 22 May 2011 16:23:07 +0000 Subject: Sync OpenBSD patchset 914: 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. --- tty-term.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tty-term.c') diff --git a/tty-term.c b/tty-term.c index 35639e7e..f987ab34 100644 --- a/tty-term.c +++ b/tty-term.c @@ -1,4 +1,4 @@ -/* $Id: tty-term.c,v 1.48 2011-05-18 20:28:43 tcunha Exp $ */ +/* $Id: tty-term.c,v 1.49 2011-05-22 16:23:07 tcunha Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott @@ -166,6 +166,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" }, @@ -493,6 +494,12 @@ tty_term_string1(struct tty_term *term, enum tty_code_code code, int a) const char * 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, 0, 0, 0, 0, 0, 0, 0)); } -- cgit