Skip to content
This repository has been archived by the owner on Oct 8, 2022. It is now read-only.

Enable POSIX style rendering on Windows #66

Open
vladdeSV opened this issue Dec 21, 2020 · 2 comments
Open

Enable POSIX style rendering on Windows #66

vladdeSV opened this issue Dec 21, 2020 · 2 comments
Labels
enhancement windows Specific to the Windows platform
Projects

Comments

@vladdeSV
Copy link
Owner

On Windows, the WinApi is used to render each cell. This is highly efficient, but comes with the drawback of it being an old API. UTF-8 is not that greatly supported (AFAIK), and RGB colors cannot be used.

Newer versions of the Windows Console (PowerShell since Windows 10 at least), understands ANSI escape codes. Enabling the same rendering method on Windows would allow RGB colors.

I am not aware of any other methods to print RGB colors on Windows.

@vladdeSV
Copy link
Owner Author

(Horrible idea: Render every RGB color with the POSIX method, and everything else using native API calls 🤓)

@vladdeSV vladdeSV added this to TODO: in scone via automation Dec 21, 2020
@vladdeSV vladdeSV added enhancement windows Specific to the Windows platform labels Dec 21, 2020
@vladdeSV vladdeSV moved this from TODO: to TODO: In the future in scone Dec 21, 2020
@vladdeSV
Copy link
Owner Author

Looked at this really quickly, and a couple Dlang POSIX-only modules are not available on Windows.

I need to look at this again and once and for all figure out how everything works. (Windows Terminal only works with some WinApi functions, but can do ANSI. conhost.exe only does WinApi.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement windows Specific to the Windows platform
Projects
scone
TODO: In the future
Development

No branches or pull requests

1 participant