mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-28 06:46:38 -04:00
Implement output text binding
This commit is contained in:
parent
b81b98d47c
commit
e06cdb3d4d
4 changed files with 22 additions and 1 deletions
6
input.c
6
input.c
|
|
@ -332,6 +332,12 @@ execute_binding(struct seat *seat, struct terminal *term,
|
|||
return true;
|
||||
}
|
||||
|
||||
case BIND_ACTION_OUTPUT_TEXT_BINDING:
|
||||
xassert(binding->aux->type == BINDING_AUX_TEXT);
|
||||
vt_from_slave(term, binding->aux->text.data, binding->aux->text.len);
|
||||
render_refresh(term);
|
||||
return true;
|
||||
|
||||
case BIND_ACTION_TEXT_BINDING:
|
||||
xassert(binding->aux->type == BINDING_AUX_TEXT);
|
||||
term_to_slave(term, binding->aux->text.data, binding->aux->text.len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue