termptyext: add escape codes to force internal rendering
This commit is contained in:
parent
35587220c7
commit
8533d8d042
|
@ -234,6 +234,15 @@ _handle_selection_is(Termpty *ty,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
_handle_force_render(Termpty *ty)
|
||||||
|
{
|
||||||
|
int preedit_x = 0, preedit_y = 0;
|
||||||
|
Termio *sd = termio_get_from_obj(ty->obj);
|
||||||
|
|
||||||
|
termio_internal_render(sd, 0, 0, &preedit_x, &preedit_y);
|
||||||
|
}
|
||||||
|
|
||||||
/* Testing escape codes that start with '\033}t' and end with '\0'
|
/* Testing escape codes that start with '\033}t' and end with '\0'
|
||||||
* Then,
|
* Then,
|
||||||
* - 'd': mouse down:
|
* - 'd': mouse down:
|
||||||
|
@ -255,6 +264,9 @@ tytest_handle_escape_codes(Termpty *ty,
|
||||||
case 'n':
|
case 'n':
|
||||||
assert(!ty->selection.is_active);
|
assert(!ty->selection.is_active);
|
||||||
break;
|
break;
|
||||||
|
case 'r':
|
||||||
|
_handle_force_render(ty);
|
||||||
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
_handle_selection_is(ty, buf+1);
|
_handle_selection_is(ty, buf+1);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue