billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=5f715b929064a381f17886d005ffd779246ace8c

commit 5f715b929064a381f17886d005ffd779246ace8c
Author: Boris Faure <[email protected]>
Date:   Sun Dec 16 19:41:34 2018 +0100

    termpty: add debug on CHA + test
---
 src/bin/termptyesc.c |  1 +
 tests/cha.sh         | 11 +++++++++++
 tests/tests.results  |  1 +
 3 files changed, 13 insertions(+)

diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 1b1a585..1a8b27a 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -1686,6 +1686,7 @@ CUF:
         break;
       case 'G': // to column N
         arg = _csi_arg_get(ty, &b);
+        DBG("CHA - Cursor Horizontal Absolute: %d", arg);
         if (arg == -CSI_ARG_ERROR)
           goto error;
         if (arg < 1)
diff --git a/tests/cha.sh b/tests/cha.sh
new file mode 100755
index 0000000..d834d00
--- /dev/null
+++ b/tests/cha.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# fill space with E
+printf '\033[69;1;1;25;80$x'
+
+#set color
+printf '\033[46;31;3m'
+
+printf '\033[3G1'
+printf '\033[G2'
+printf '\033[444444G3'
diff --git a/tests/tests.results b/tests/tests.results
index e6fdc9e..657cece 100644
--- a/tests/tests.results
+++ b/tests/tests.results
@@ -30,3 +30,4 @@ sgr-leading-trailing-semicolon.sh 
d7701f1193bde63412a9b969f17e10ec
 sgr-truecolors.sh 9db4becc728bb9f1730f3573dc7fc668
 sgr-long.sh ec0425b1daabaa59096c10939e79b105
 decsclm.sh 1ffcea3bfc4704d9091272dc59cbb311
+cha.sh 04092c42102eb0d71ae700ee47c9ac34

-- 


Reply via email to