Open sl-service-account opened 4 years ago
Chorazin Allen commented at 2020-05-30T13:14:23Z
How-to, based on changes made in Kokua:-
In llerror.cpp
Take out the platform tests in checkANSI() so that the code runs on Windows too, the return FALSE becomes surplus too
In llappviewerwin32.cpp
Extend all three of the stream opening/redirecting clauses with this code after each setvbuf
Background note - from Windows 10, the console window gained colour compatibility. Now that the official target is Windows 10 plus, it's safe to make this standard behaviour.
Ansariel Hiller commented at 2020-06-01T13:12:34Z, updated at 2020-06-01T13:15:06Z
The new Windows terminal also supports emojis - maybe we should add some of those as well, e.g. a sad emoji when the viewer crashed...
The Windows 10 console can support color output, if set to the appropriate mode. Set that mode when creating the viewer's debug console.
Attachments
Original Jira Fields
| Field | Value | | ------------- | ------------- | | Issue | BUG-228841 | | Summary | Enable color output in Windows viewer debug console | | Type | New Feature Request | | Priority | Unset | | Status | Accepted | | Resolution | Unresolved | | Reporter | Nat Linden (nat.linden) | | Created at | 2020-05-29T21:10:56Z | | Updated at | 2020-06-03T15:47:14Z | ``` { 'Build Id': 'unset', 'Business Unit': ['Platform'], 'Date of First Response': '2020-05-30T08:14:23.219-0500', 'How would you like the feature to work?': 'Enabling the Windows debug console displays messages in color.', 'ReOpened Count': 0.0, 'Severity': 'Unset', 'Target Viewer Version': 'viewer-development', 'Why is this feature important to you? How would it benefit the community?': 'Output on the Windows debug console would regain parity with the Mac console log, which can display colors.', } ```