termstatus: use errWriter if terminal commands fail

This commit is contained in:
Michael Eischer
2025-09-21 19:16:16 +02:00
parent 711194276c
commit f2b9ea6455
4 changed files with 26 additions and 18 deletions

View File

@@ -12,12 +12,12 @@ import (
// ClearCurrentLine removes all characters from the current line and resets the
// cursor position to the first column.
func ClearCurrentLine(_ uintptr) func(io.Writer, uintptr) {
func ClearCurrentLine(_ uintptr) func(io.Writer, uintptr) error {
return PosixClearCurrentLine
}
// MoveCursorUp moves the cursor to the line n lines above the current one.
func MoveCursorUp(_ uintptr) func(io.Writer, uintptr, int) {
func MoveCursorUp(_ uintptr) func(io.Writer, uintptr, int) error {
return PosixMoveCursorUp
}