billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=9c2b3887d191a118fdaa3d71bc34db98b5f8d405

commit 9c2b3887d191a118fdaa3d71bc34db98b5f8d405
Author: Boris Faure <[email protected]>
Date:   Sun Dec 16 19:32:13 2018 +0100

    termptyesc: support DECSCLM but ignore it + test
---
 src/bin/termptyesc.c |  3 +--
 tests/decsclm.sh     | 10 ++++++++++
 tests/tests.results  |  1 +
 3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index c94e91f..1b1a585 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -305,8 +305,7 @@ _handle_esc_csi_reset_mode(Termpty *ty, Eina_Unicode cc, 
Eina_Unicode *b,
 #endif
                    break;
                 case 4:
-                   WRN("TODO: scrolling mode (DECSCLM): %i", mode);
-                   ty->decoding_error = EINA_TRUE;
+                   DBG("scrolling mode (DECSCLM): %i (always fast mode)", 
mode);
                    break;
                 case 5:
                    ty->termstate.reverse = mode;
diff --git a/tests/decsclm.sh b/tests/decsclm.sh
new file mode 100755
index 0000000..d5bc275
--- /dev/null
+++ b/tests/decsclm.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# fill space with E
+printf '\033[69;1;1;25;80$x'
+
+# set scrolling mode to fast
+printf '\033[?4l'
+# set scrolling mode to smooth
+printf '\033[?4h'
+
diff --git a/tests/tests.results b/tests/tests.results
index 4442b13..e6fdc9e 100644
--- a/tests/tests.results
+++ b/tests/tests.results
@@ -29,3 +29,4 @@ colors.sh 532494a2e56c102ee10ab1a9b8f176d7
 sgr-leading-trailing-semicolon.sh d7701f1193bde63412a9b969f17e10ec
 sgr-truecolors.sh 9db4becc728bb9f1730f3573dc7fc668
 sgr-long.sh ec0425b1daabaa59096c10939e79b105
+decsclm.sh 1ffcea3bfc4704d9091272dc59cbb311

-- 


Reply via email to