Created
March 16, 2026 12:26
-
-
Save cgm999/84724ee00473bc9beb2bea3ed96384d6 to your computer and use it in GitHub Desktop.
xterm - replace blink with inverse
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- 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