Skip to content

Instantly share code, notes, and snippets.

@cgm999
Created March 16, 2026 12:26
Show Gist options
  • Select an option

  • Save cgm999/84724ee00473bc9beb2bea3ed96384d6 to your computer and use it in GitHub Desktop.

Select an option

Save cgm999/84724ee00473bc9beb2bea3ed96384d6 to your computer and use it in GitHub Desktop.
xterm - replace blink with inverse
--- a/charproc.c
+++ b/charproc.c
@@ -4380,15 +4380,8 @@ doparsing(XtermWidget xw, unsigned c, struct ParseState *sp)
setExtendedFG(xw);
});
break;
- case 5: /* Blink (less than 150 per minute) */
- /* FALLTHRU */
- case 6: /* Blink (150 per minute, or more) */
- UIntSet(xw->flags, BLINK);
- StartBlinking(xw);
- if_OPT_ISO_COLORS(screen, {
- setExtendedFG(xw);
- });
- break;
+ case 5:
+ case 6:
case 7:
UIntSet(xw->flags, INVERSE);
if_OPT_ISO_COLORS(screen, {
@@ -4434,12 +4427,7 @@ doparsing(XtermWidget xw, unsigned c, struct ParseState *sp)
setExtendedFG(xw);
});
break;
- case 25: /* reset 'blink' */
- UIntClr(xw->flags, BLINK);
- if_OPT_ISO_COLORS(screen, {
- setExtendedFG(xw);
- });
- break;
+ case 25:
case 27:
UIntClr(xw->flags, INVERSE);
if_OPT_ISO_COLORS(screen, {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment