💾 Archived View for gemini.thegonz.net › zyg › infuse-zyg.diff captured on 2024-08-25 at 03:46:33.

View Raw

More Information

⬅️ Previous capture (2022-03-01)

-=-=-=-=-=-=-

diff --git a/sys/linux-stdio/ztstdio.c b/sys/linux-stdio/ztstdio.c
index e53b43b..780a620 100644
--- a/sys/linux-stdio/ztstdio.c
+++ b/sys/linux-stdio/ztstdio.c
@@ -122,11 +122,13 @@ void
 zshstr (int x, int y, int w, int align, z_glyph *s, int n)
 {
   int i;
+
+  if (s->style & Z_REVERSE) return;
+
   if (y != prev_y) putwchar (L'\n');
   prev_y = y;
   for (i = 0; i < n; i++) {
     putwchar ((wchar_t)s[i].ch);
-    //fprintf (stderr, "%x\t%lc\n", (int)s[i].ch, s[i].ch);
   }
 }
 
@@ -145,7 +147,9 @@ input_wchar(void)
     newt = oldt;
     newt.c_lflag &= ~( ICANON | ECHO );
     tcsetattr( STDIN_FILENO, TCSANOW, &newt );
+    dprintf(3, "<");
     ch = getwchar();
+    dprintf(3, ">");
     tcsetattr( STDIN_FILENO, TCSANOW, &oldt );
     return ch;
 }