diff options
author | Tiago Cunha <tcunha@gmx.com> | 2011-05-22 16:23:07 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2011-05-22 16:23:07 +0000 |
commit | 89f35125b4eb5c032f57e8acb70274b77e887f0b (patch) | |
tree | c80b93414d1533f98d7345177effa05ec7cfdee9 /screen-write.c | |
parent | e7f3be9187a30c3a140f608a454b077906fe6f81 (diff) | |
download | rtmux-89f35125b4eb5c032f57e8acb70274b77e887f0b.tar.gz rtmux-89f35125b4eb5c032f57e8acb70274b77e887f0b.tar.bz2 rtmux-89f35125b4eb5c032f57e8acb70274b77e887f0b.zip |
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.
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/screen-write.c b/screen-write.c index 8bb6b141..bf518687 100644 --- a/screen-write.c +++ b/screen-write.c @@ -1,4 +1,4 @@ -/* $Id: screen-write.c,v 1.96 2011-04-18 21:06:49 nicm Exp $ */ +/* $Id: screen-write.c,v 1.97 2011-05-22 16:23:07 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1195,6 +1195,18 @@ screen_write_overwrite(struct screen_write_ctx *ctx, u_int width) } void +screen_write_setselection(struct screen_write_ctx *ctx, u_char *str, u_int len) +{ + struct tty_ctx ttyctx; + + screen_write_initctx(ctx, &ttyctx, 0); + ttyctx.ptr = str; + ttyctx.num = len; + + tty_write(tty_cmd_setselection, &ttyctx); +} + +void screen_write_rawstring(struct screen_write_ctx *ctx, u_char *str, u_int len) { struct tty_ctx ttyctx; |