mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-07 04:06:07 -05:00
term: add private mode flag ‘’reverse-wrap’
This commit is contained in:
parent
5594746e49
commit
060be30803
2 changed files with 7 additions and 0 deletions
5
csi.c
5
csi.c
|
|
@ -399,6 +399,10 @@ decset_decrst(struct terminal *term, unsigned param, bool enable)
|
|||
term->hide_cursor = !enable;
|
||||
break;
|
||||
|
||||
case 45:
|
||||
term->reverse_wrap = enable;
|
||||
break;
|
||||
|
||||
case 1000:
|
||||
if (enable)
|
||||
term->mouse_tracking = MOUSE_CLICK;
|
||||
|
|
@ -576,6 +580,7 @@ xtsave(struct terminal *term, unsigned param)
|
|||
}
|
||||
|
||||
case 25: term->xtsave.show_cursor = !term->hide_cursor; break;
|
||||
case 45: term->xtsave.reverse_wrap = term->reverse_wrap; break;
|
||||
case 1000: term->xtsave.mouse_click = term->mouse_tracking == MOUSE_CLICK; break;
|
||||
case 1001: break;
|
||||
case 1002: term->xtsave.mouse_drag = term->mouse_tracking == MOUSE_DRAG; break;
|
||||
|
|
|
|||
|
|
@ -237,6 +237,7 @@ struct terminal {
|
|||
enum keypad_keys keypad_keys_mode;
|
||||
bool reverse;
|
||||
bool hide_cursor;
|
||||
bool reverse_wrap;
|
||||
bool auto_margin;
|
||||
bool insert_mode;
|
||||
bool bracketed_paste;
|
||||
|
|
@ -256,6 +257,7 @@ struct terminal {
|
|||
uint32_t application_cursor_keys:1;
|
||||
uint32_t reverse:1;
|
||||
uint32_t show_cursor:1;
|
||||
uint32_t reverse_wrap:1;
|
||||
uint32_t auto_margin:1;
|
||||
uint32_t cursor_blink:1;
|
||||
uint32_t insert_mode:1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue