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.
This commit is contained in:
Nicholas Marriott
2011-05-18 20:24:29 +00:00
parent 58908fd8c5
commit 96e7f33da3
7 changed files with 100 additions and 1 deletions

View File

@@ -1194,6 +1194,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)
{