[PATCH] util.startup: Make use of Windows console host type detection

3 views
Skip to first unread message

vkvo...@vivaldi.net

unread,
Mar 14, 2023, 6:24:36 PM3/14/23
to proso...@googlegroups.com
Since Windows 10 'November Update' (10.0.10586) there are two console hosts, the
legacy and modern one. The latter natively supports ANSI sequences, allowing
Prosody to output console log without having to alter output.
This is not the case for legacy console host that has to switch bg/text color
every time we have to change it.
On startup, Prosody will throw a warning if it was run either in legacy conhost
on supported system or an outdated version of Windows. Both warnings can be
suppressed by command line arguments, as well as an option to keep ANSI output
on legacy console host is there.


prosody-trunk.patch
Reply all
Reply to author
Forward
0 new messages