Adjust brightness values
authorMatthew Mondor <mmondor@pulsar-zone.net>
Wed, 27 Apr 2022 10:18:14 +0000 (10:18 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Wed, 27 Apr 2022 10:18:14 +0000 (10:18 +0000)
MATT/TODO.txt
hacks/analogterm.h
utils/textclient.c

index a0676d1..c425b6a 100644 (file)
@@ -73,6 +73,7 @@ TODO
   switching plugin gets Ctrl/Shift flagged in X11 XKeyEvent's state field,
   affecting various applications, but not all.  Presumably applications that
   check up/down events to themselves handle Ctrl/Shift flags are not affected.
+  Using XGetModifierMapping() may also be a workaround.
   Fixed by replacing the plugin by two buttons directly invoking setxkbmap for
   now.  Leaving this note in case someone else experiences a similar issue, to
   have a clue on how to fix it.
@@ -343,6 +344,7 @@ Additional related notes removed from TODO:
   And according to xterm man page, if backarrowKeyIsErase resource
   is on (on by default), it queries stty in order to determine what
   to send.
+  The Execute key is actually the escape sequence sent for Delete ([~3).
 
 
 THREADS AND SMP
index 96372bc..35d79ba 100644 (file)
 #define TMODE_FGCOLOR          (1L << 10)
 #define TMODE_BGCOLOR          (1L << 11)
 
-#define TMODE_NORMAL_LEVEL     (ANALOGTV_WHITE_LEVEL - 35)
-#define TMODE_BOLD_LEVEL       (ANALOGTV_WHITE_LEVEL + 20)
+#define TMODE_NORMAL_LEVEL     (ANALOGTV_WHITE_LEVEL - 45)
+#define TMODE_BOLD_LEVEL       (ANALOGTV_WHITE_LEVEL + 15)
 #define TMODE_DIM_LEVEL                (ANALOGTV_WHITE_LEVEL - 60)
 
-#define CHARSETS               2
-
 
 typedef struct analogterm_state {
   unsigned char hireslines[192][80];
index ded2d0b..186aba1 100644 (file)
@@ -710,7 +710,7 @@ kdead_filter(KeySym keysym, unsigned char *c)
 Bool
 textclient_putc (text_data *d, XKeyEvent *k)
 {
-  KeySym keysym;
+  KeySym keysym = 0;
   unsigned char c = 0;
   const char *send = NULL;
   bool swapped = false;