-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve naming and documentation around attribute data #2603
Comments
If |
@JavaCS3 it would still be a number, just a more precise one: type ColorMode = CM_DEFAULT | CM_P16 | CM_P256 | CM_RGB
// equivalent to this but with names:
type ColorMode = 0 | 0x1000000 | 0x2000000 | 0x3000000 |
Great |
@JavaCS3 Just drop me a note if you have issue to restyle it (since I have created that convoluted mess). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current state:
xterm.js/src/common/Types.d.ts
Lines 71 to 100 in 17cb610
Problems:
fg
andbg
are very ambiguousgetFgColor
andgetBgColor
return a number, not anIColor
getFgColorMode
andgetBgColorMode
to return atype ColorMode = CM_DEFAULT | CM_P16 | CM_P256 | CM_RGB
instead ofnumber
?The text was updated successfully, but these errors were encountered: