billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=8533d8d04299326da2bb47fd882e5674304f4e2f

commit 8533d8d04299326da2bb47fd882e5674304f4e2f
Author: Boris Faure <[email protected]>
Date:   Sun Feb 10 23:53:55 2019 +0100

    termptyext: add escape codes to force internal rendering
---
 src/bin/termptyext.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/bin/termptyext.c b/src/bin/termptyext.c
index 8b29ed4..d3b04fb 100644
--- a/src/bin/termptyext.c
+++ b/src/bin/termptyext.c
@@ -234,6 +234,15 @@ _handle_selection_is(Termpty *ty,
      }
 }
 
+static void
+_handle_force_render(Termpty *ty)
+{
+   int preedit_x = 0, preedit_y = 0;
+   Termio *sd = termio_get_from_obj(ty->obj);
+
+   termio_internal_render(sd, 0, 0, &preedit_x, &preedit_y);
+}
+
 /* Testing escape codes that start with '\033}t' and end with '\0'
  * Then,
  * - 'd': mouse down:
@@ -255,6 +264,9 @@ tytest_handle_escape_codes(Termpty *ty,
       case 'n':
         assert(!ty->selection.is_active);
         break;
+      case 'r':
+        _handle_force_render(ty);
+        break;
       case 's':
         _handle_selection_is(ty, buf+1);
         break;

-- 


Reply via email to