1
0
mirror of https://github.com/rclone/rclone.git synced 2025-07-06 06:27:53 +02:00

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:
LaSombra
2020-10-06 16:34:26 +01:00
committed by GitHub
parent 6dc28ef50a
commit aac2406e19
8 changed files with 33 additions and 0 deletions

View File

@ -60,6 +60,9 @@ const (
HiMagentaBg = "\x1b[105m"
HiCyanBg = "\x1b[106m"
HiWhiteBg = "\x1b[107m"
ChangeTitle = "\033]0;"
BEL = "\007"
)
var (