File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ const (
27
27
backgroundRed = 0x40
28
28
backgroundIntensity = 0x80
29
29
backgroundMask = (backgroundRed | backgroundBlue | backgroundGreen | backgroundIntensity )
30
- commonLvbReverse = 0x4000
31
30
commonLvbUnderscore = 0x8000
32
31
33
32
cENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x4
@@ -689,14 +688,15 @@ loop:
689
688
attr |= commonLvbUnderscore
690
689
case (1 <= n && n <= 3 ) || n == 5 :
691
690
attr |= foregroundIntensity
692
- case n == 7 :
693
- attr |= commonLvbReverse
691
+ case n == 7 || n == 27 :
692
+ attr =
693
+ (attr &^ (foregroundMask | backgroundMask )) |
694
+ ((attr & foregroundMask ) << 4 ) |
695
+ ((attr & backgroundMask ) >> 4 )
694
696
case n == 22 :
695
697
attr &^= foregroundIntensity
696
698
case n == 24 :
697
699
attr &^= commonLvbUnderscore
698
- case n == 27 :
699
- attr &^= commonLvbReverse
700
700
case 30 <= n && n <= 37 :
701
701
attr &= backgroundMask
702
702
if (n - 30 )& 1 != 0 {
You can’t perform that action at this time.
0 commit comments