Closed endowdly closed 2 years ago
I think this could be interesting, big question is how to fool-proof test for this ability?
@Tieske This is a great question, and not sure how I would approach this. Frankly, testing the console host (especially for Windows) is not something I know how to do, or even know how to approach.
My thought would be a call of some kind, either to C++ libs or to PowerShell that could query the console and return a value in the Lua module that could set up the term colors?
see https://github.com/Olivine-Labs/busted/pull/675 which adds flags to force behaviour.
closing this. If not appropriate, please reopen.
With Windows 10, the new Console Host and Windows Terminal both support ANSI escape codes and support term.colors.
Here is a simple change I made to
utfTerminal.lua
:Original
Warning: does no version or or system checking
Modified
Not sure if your team would like to incorporate this with some os version checking??
Note: the console has to be set to output UTF-8, otherwise it'll pump out .NETUnicode (UTF-16 LE) by default.