version 1.207, 2022/03/17 13:39:13 |
version 1.208, 2022/06/09 09:12:55 |
|
|
|
|
/* Set external clipboard. */ |
/* Set external clipboard. */ |
void |
void |
screen_write_setselection(struct screen_write_ctx *ctx, u_char *str, u_int len) |
screen_write_setselection(struct screen_write_ctx *ctx, const char *flags, |
|
u_char *str, u_int len) |
{ |
{ |
struct tty_ctx ttyctx; |
struct tty_ctx ttyctx; |
|
|
screen_write_initctx(ctx, &ttyctx, 0); |
screen_write_initctx(ctx, &ttyctx, 0); |
ttyctx.ptr = str; |
ttyctx.ptr = str; |
|
ttyctx.ptr2 = (void *)flags; |
ttyctx.num = len; |
ttyctx.num = len; |
|
|
tty_write(tty_cmd_setselection, &ttyctx); |
tty_write(tty_cmd_setselection, &ttyctx); |