forked from TrueCloudLab/rclone
cmd: add --progress-terminal-title to print ETA to terminal title
Adds a flag, --progress-terminal-title, that when used with --progress, will print the string `ETA: %s` to the terminal title. This also adds WriteTerminalTitle to lib/terminal
This commit is contained in:
parent
6dc28ef50a
commit
aac2406e19
8 changed files with 33 additions and 0 deletions
|
@ -21,3 +21,8 @@ func IsTerminal(fd int) bool {
|
|||
func ReadPassword(fd int) ([]byte, error) {
|
||||
return nil, errors.New("can't read password")
|
||||
}
|
||||
|
||||
// WriteTerminalTitle writes a string to the terminal title
|
||||
func WriteTerminalTitle(title string) {
|
||||
// Since there's nothing to return, this is a NOOP
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue