Move the magefile related files to a submodule, so that it
does not become a dependency for logrus itself.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Instead of relying on EnableVirtualTerminalProcessing from
github.com/konsorten/go-windows-terminal-sequences which just calls
GetConsoleMode, sets ENABLE_VIRTUAL_TERMINAL_PROCESSING and calls
SetConsoleMode with the new modified mode, implement it directly inside
checkIfTerminal. This also avoids the duplicate call to GetConsoleMode.