- Increase cursor-on delay when active
authorMatthew Mondor <mmondor@pulsar-zone.net>
Thu, 14 Apr 2022 06:32:26 +0000 (06:32 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Thu, 14 Apr 2022 06:32:26 +0000 (06:32 +0000)
- Update TODO including about potential unicode glyphs to remap or add

MATT/TODO.txt
hacks/analogterm.c

index af0f022..58e651b 100644 (file)
@@ -9,6 +9,12 @@ BUILD
 TODO
 ====
 
+- Various latin characters look strange and could be improved.
+- Links appears to enter DEC Special Graphics for some reason and to not exit
+  it.  This does not happen under tmux(1).
+- ‘ ’ and
+  %s/“/"/e|%s/”/"/e|%s/’/'/e|%s/‘/'/e|%s/’/'/e|%s/″/"/e|%s/″/"/e|%s/“/"/e|%s/”/"/e
+  – – – — ― —
 - When using French in UTF-8 mode on Ubuntu, some glyphs are missing, like the
   hyphen ‐ from
   https://en.wikipedia.org/wiki/General_Punctuation_%28Unicode_block%29
index d5be2c6..e0e19de 100644 (file)
@@ -117,7 +117,7 @@ at_insert(analogterm_state_t *st, int many)
                *mptr = st->mode & TMODE_BGCOLOR;
 }
 
-bool cursor_waitnext = true;
+int cursor_waitnext = 2;
 bool cursor_laststate = false;
 
 void
@@ -127,11 +127,11 @@ at_drawcursor(analogterm_sim_t *sim)
        int x, y;
        signed char *pp;
 
-       if (st->blink && !cursor_waitnext)
+       if (st->blink && cursor_waitnext == 0)
                return;
-       if (cursor_waitnext) {
+       if (cursor_waitnext > 0) {
                if (cursor_laststate != st->blink)
-                       cursor_waitnext = false;
+                       cursor_waitnext--;
        }
        cursor_laststate = st->blink;
 
@@ -147,7 +147,7 @@ void
 at_resetcursor(void)
 {
 
-       cursor_waitnext = true;
+       cursor_waitnext = 2;
 }
 
 #ifdef PULSECURSOR
@@ -447,7 +447,7 @@ at_free_font(font_t *font)
  * fixed-time resolution.
  * XXX I somehow never could quiet incompatible types warnings without using
  * void *.  Not working: uint8_t (*)[7], uint8_t **, uint8_t *[],
- * uint8_t *[7], ...
+ * uint8_t *[7], uint8_t *, ...
  */
 static void *
 at_glyph(analogterm_sim_t *sim, uint32_t c, bool decgfx)