version 1.216, 2023/06/30 13:19:32 |
version 1.217, 2023/07/03 16:47:43 |
|
|
static void input_osc_110(struct input_ctx *, const char *); |
static void input_osc_110(struct input_ctx *, const char *); |
static void input_osc_111(struct input_ctx *, const char *); |
static void input_osc_111(struct input_ctx *, const char *); |
static void input_osc_112(struct input_ctx *, const char *); |
static void input_osc_112(struct input_ctx *, const char *); |
|
static void input_osc_133(struct input_ctx *, const char *); |
|
|
/* Transition entry/exit handlers. */ |
/* Transition entry/exit handlers. */ |
static void input_clear(struct input_ctx *); |
static void input_clear(struct input_ctx *); |
|
|
case 112: |
case 112: |
input_osc_112(ictx, p); |
input_osc_112(ictx, p); |
break; |
break; |
|
case 133: |
|
input_osc_133(ictx, p); |
|
break; |
default: |
default: |
log_debug("%s: unknown '%u'", __func__, option); |
log_debug("%s: unknown '%u'", __func__, option); |
break; |
break; |
|
|
screen_set_cursor_colour(ictx->ctx.s, -1); |
screen_set_cursor_colour(ictx->ctx.s, -1); |
} |
} |
|
|
|
/* Handle the OSC 133 sequence. */ |
|
static void |
|
input_osc_133(struct input_ctx *ictx, const char *p) |
|
{ |
|
struct grid *gd = ictx->ctx.s->grid; |
|
u_int line = ictx->ctx.s->cy + gd->hsize; |
|
struct grid_line *gl; |
|
|
|
if (line > gd->hsize + gd->sy - 1) |
|
return; |
|
gl = grid_get_line(gd, line); |
|
|
|
switch (*p) { |
|
case 'A': |
|
gl->flags |= GRID_LINE_START_PROMPT; |
|
break; |
|
} |
|
} |
|
|
/* Handle the OSC 52 sequence for setting the clipboard. */ |
/* Handle the OSC 52 sequence for setting the clipboard. */ |
static void |
static void |