Skip to content

Commit

Permalink
refactor(internal/term): use strconv for integer conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
nullswan committed Oct 11, 2024
1 parent a7ed1ae commit afdf5ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/term/screenbuf.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"io"
"os"
"strconv"
"strings"

"golang.org/x/term"
Expand Down Expand Up @@ -47,7 +48,7 @@ func (sb *ScreenBuf) WriteLine(s string) {
) // Delete the top line
fmt.Fprint(
sb.writer,
"\033["+fmt.Sprint(sb.height-1)+";1H",
"\033["+strconv.Itoa(sb.height-1)+";1H",
) // Move cursor to last line
fmt.Fprint(
sb.writer,
Expand Down

0 comments on commit afdf5ea

Please sign in to comment.