We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccf45e7 commit 79c45beCopy full SHA for 79c45be
1 file changed
internal/output/animations.go
@@ -5,11 +5,15 @@ import (
5
"time"
6
7
"github.com/charmbracelet/ssh"
8
+ "go.mattglei.ch/timber"
9
)
10
11
func TypewriterAnimation(s ssh.Session, speed time.Duration, msg string) {
12
for _, c := range msg {
- fmt.Fprint(s, string(c))
13
+ _, err := fmt.Fprint(s, string(c))
14
+ if err != nil {
15
+ timber.Error(err, "failed to output", c)
16
+ }
17
time.Sleep(speed)
18
}
19
0 commit comments