As cmr's comment says, COMMON_LVB_REVERSE_VIDEO and COMMON_LVB_UNDERSCORE
are not usable. There is a mode flag (ENABLE_LVB_GRID_WORLDWIDE) that is
supposed to make them work, but:
COMMON_LVB_REVERSE_VIDEO works on Windows 10 regardless of whether
this flag is set.
Since setting ENABLE_LVB_GRID_WORLDWIDE fails on older Windows
versions (tested on Windows 7), and since Windows 10 has the flag
ENABLE_VIRTUAL_TERMINAL_PROCESSING which enables xterm-level
ANSI compatibility. This whole exercise is pointless.
This commit adds simple emulations for three attributes:
Reverse: simply reverse fg and bg.
Secure: set fg = bg.
Standout: set BACKGROUND_INTENSITY.
This should improve the situation slightly on older versions of Windows.
For Windows 10, we should take advantage of
ENABLE_VIRTUAL_TERMINAL_PROCESSING. One approach of doing so will be
shared in a following commit/PR.
As cmr's comment says, COMMON_LVB_REVERSE_VIDEO and COMMON_LVB_UNDERSCORE are not usable. There is a mode flag (ENABLE_LVB_GRID_WORLDWIDE) that is supposed to make them work, but:
This commit adds simple emulations for three attributes:
This should improve the situation slightly on older versions of Windows. For Windows 10, we should take advantage of ENABLE_VIRTUAL_TERMINAL_PROCESSING. One approach of doing so will be shared in a following commit/PR.