-
Notifications
You must be signed in to change notification settings - Fork 5
COLORFGBG #26
Copy link
Copy link
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
I don't particularly like the
COLORFGBGmechanism, but it seems to be useful to people who use a terminal that doesn't support querying. See dalance/termbg#18 (comment).Terminals
urxvt(1): https://man.archlinux.org/man/extra/rxvt-unicode/urxvt.1.en#COLORFGBGCOLORFGBGbut only communicates dark-on-light vs light-on-dark: https://invent.kde.org/utilities/konsole/-/blob/f62bce57d00bcc5fc7bfb265303bd3bccaef2c05/src/session/Session.cpp#L557-L56115;0and0;15(light-on-dark / dark-on-light) if no colors match: https://gitlab.com/gnachman/iterm2/-/blob/66dae7174eea71d289bce06b0513a35b8fcc857e/sources/iTermAdvancedSettingsModel.m#L377Applications
NCURSES_ASSUMED_COLORSenv var to communicate color fg / bg.Notes
COLORFGBGalso support the corresponding escape sequences, so preferringCOLORFGBGwould result in incorrect values when the values are changed at runtime (the escape sequences get the up-to-date value while the env var does not change).COLORFGBG