mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 22:22:21 +08:00
e09a4ff019
This detects the presence of a VT100 terminal by using the TERM environment variable and switches to using VT100 codes directly under windows if it is found. This makes --progress work correctly with git bash.
10 lines
168 B
Go
10 lines
168 B
Go
//+build !windows
|
|
|
|
package cmd
|
|
|
|
func init() {
|
|
// Default terminal is VT100 for non Windows
|
|
initTerminal = initTerminalVT100
|
|
writeToTerminal = writeToTerminalVT100
|
|
}
|