aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termptyesc.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-12-15 22:59:50 +0100
committerBoris Faure <billiob@gmail.com>2016-12-15 23:11:22 +0100
commit7c720058a1749e8858d0eb75bb42ec7ca5c38c89 (patch)
tree06bc641268041a6a19040eff3bf068e433109902 /src/bin/termptyesc.c
parenttermptyesc: handle correctly Cursor Back Tab. Ref T4992 (diff)
downloadterminology-7c720058a1749e8858d0eb75bb42ec7ca5c38c89.tar.gz
termptyesc: add some debug
Diffstat (limited to 'src/bin/termptyesc.c')
-rw-r--r--src/bin/termptyesc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 1188d8d..164250b 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -1660,16 +1660,19 @@ _handle_esc(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
ty->termstate.alt_kp = 0;
return 1;
case 'M': // move to prev line
+ DBG("move to prev line");
ty->termstate.wrapnext = 0;
ty->cursor_state.cy--;
termpty_text_scroll_rev_test(ty, EINA_TRUE);
return 1;
case 'D': // move to next line
+ DBG("move to next line");
ty->termstate.wrapnext = 0;
ty->cursor_state.cy++;
termpty_text_scroll_test(ty, EINA_FALSE);
return 1;
case 'E': // add \n\r
+ DBG("add \\n\\r");
ty->termstate.wrapnext = 0;
ty->cursor_state.cx = 0;
ty->cursor_state.cy++;