1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-22 11:13:23 +00:00

vendor: add github.com/Azure/go-ansiterm for --progress on Windows support

This commit is contained in:
Nick Craig-Wood
2018-08-17 17:04:18 +01:00
parent b6db90cc32
commit 18685e6b0b
29 changed files with 3175 additions and 0 deletions

24
vendor/github.com/Azure/go-ansiterm/ground_state.go generated vendored Normal file
View File

@@ -0,0 +1,24 @@
package ansiterm
type groundState struct {
baseState
}
func (gs groundState) Handle(b byte) (s state, e error) {
gs.parser.context.currentChar = b
nextState, err := gs.baseState.Handle(b)
if nextState != nil || err != nil {
return nextState, err
}
switch {
case sliceContains(printables, b):
return gs, gs.parser.print()
case sliceContains(executors, b):
return gs, gs.parser.execute()
}
return gs, nil
}