Skip to content

Commit

Permalink
refactor(ansi): change order of arguments in MoveCursor
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Oct 17, 2024
1 parent 24ab451 commit 0e84032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansi/cursor.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func CursorPreviousLine(n int) string {
// CSI n ; m H
//
// See: https://vt100.net/docs/vt510-rm/CUP.html
func MoveCursor(row, col int) string {
func MoveCursor(col, row int) string {
if row < 0 {
row = 0
}
Expand Down

0 comments on commit 0e84032

Please sign in to comment.