We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6c0098 commit 2e1b0c1Copy full SHA for 2e1b0c1
colorable_windows.go
@@ -719,7 +719,7 @@ loop:
719
n256setup()
720
}
721
attr &= backgroundMask
722
- attr |= n256foreAttr[n256]
+ attr |= n256foreAttr[n256%len(n256foreAttr)]
723
i += 2
724
725
} else if len(token) == 5 && token[i+1] == "2" {
@@ -761,7 +761,7 @@ loop:
761
762
763
attr &= foregroundMask
764
- attr |= n256backAttr[n256]
+ attr |= n256backAttr[n256%len(n256backAttr)]
765
766
767
0 commit comments