mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
consolidate checks whether stdin/stdout is terminal
This commit is contained in:
@@ -10,13 +10,13 @@ import (
|
||||
"golang.org/x/term"
|
||||
)
|
||||
|
||||
// clearCurrentLine removes all characters from the current line and resets the
|
||||
// ClearCurrentLine removes all characters from the current line and resets the
|
||||
// cursor position to the first column.
|
||||
func ClearCurrentLine(_ uintptr) func(io.Writer, uintptr) {
|
||||
return PosixClearCurrentLine
|
||||
}
|
||||
|
||||
// moveCursorUp moves the cursor to the line n lines above the current one.
|
||||
// MoveCursorUp moves the cursor to the line n lines above the current one.
|
||||
func MoveCursorUp(_ uintptr) func(io.Writer, uintptr, int) {
|
||||
return PosixMoveCursorUp
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user