rclone/lib/terminal
albertony f9d50f677d lib/terminal: enable windows console virtual terminal sequences processing (ANSI/VT100 colors)
This ensures the virtual terminal processing mode is enabled on the rclone process
for Windows 10 consoles (by using Windows Console API functions GetConsoleMode/SetConsoleMode
and flag ENABLE_VIRTUAL_TERMINAL_PROCESSING), which adds native support for ANSI/VT100
escape sequences. This mode is default in many cases, e.g. when using the Windows
Terminal application, but in other cases it is not, and the default can also be
controlled with registry setting (see below), and therefore configuring it on the process
seem to be the only reliable way of ensuring it is enabled when supported.

[HKEY_CURRENT_USER\Console]
"VirtualTerminalLevel"=dword:00000001
2023-03-03 12:37:01 +01:00
..
hidden_other.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
hidden_windows.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
terminal_normal.go fs/config, lib/terminal: use golang.org/x/term 2022-04-01 12:48:18 +01:00
terminal_unsupported.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
terminal.go lib/terminal: enable windows console virtual terminal sequences processing (ANSI/VT100 colors) 2023-03-03 12:37:01 +01:00