aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termptyops.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2017-06-03 23:17:33 +0200
committerBoris Faure <billiob@gmail.com>2017-06-03 23:17:33 +0200
commit7ab925dc765204d21454d120b19e7638eff9d751 (patch)
tree483cb66c62996f5c88488a0d7e295f8f81b31772 /src/bin/termptyops.c
parenttermptyesc: correctly handle missing arguments in CUP/HVP (diff)
downloadterminology-7ab925dc765204d21454d120b19e7638eff9d751.tar.gz
termpty: very early support of Right/Left margins
Diffstat (limited to 'src/bin/termptyops.c')
-rw-r--r--src/bin/termptyops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/termptyops.c b/src/bin/termptyops.c
index dfb3708..c6a93dd 100644
--- a/src/bin/termptyops.c
+++ b/src/bin/termptyops.c
@@ -399,6 +399,9 @@ termpty_reset_state(Termpty *ty)
ty->cursor_state.cy = 0;
ty->termstate.top_margin = 0;
ty->termstate.bottom_margin = 0;
+ ty->termstate.left_margin = 0;
+ ty->termstate.right_margin = 0;
+ ty->termstate.lr_margins = 0;
ty->termstate.had_cr_x = 0;
ty->termstate.had_cr_y = 0;
ty->termstate.restrict_cursor = 0;