mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 10:23:16 +08:00
f9d50f677d
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 |
||
---|---|---|
.. | ||
hidden_other.go | ||
hidden_windows.go | ||
terminal_normal.go | ||
terminal_unsupported.go | ||
terminal.go |