Skip to content

Commit

Permalink
docs(term): input: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Apr 22, 2024
1 parent 525ba71 commit 943add0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exp/term/examples/readinput/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ OUT:
}

for _, e := range events {
log.Printf("%T %#v\r\n", e, e)
log.Printf("%T %v\r\n", e, e)
}

// Store last keypress
Expand Down
2 changes: 1 addition & 1 deletion exp/term/input/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func parseCsi(b []byte) (int, Event) {
// likely to be the case than the cursor being at the first row.
//
// For a non ambiguous cursor position report, use
// [ansi.RequestExtendedCursorPosition] (DECRPM) instead.
// [ansi.RequestExtendedCursorPosition] (DECXCPR) instead.
if csi.Param(0) != 1 {
return i, CursorPositionEvent{Row: csi.Param(0), Column: csi.Param(1)}
}
Expand Down

0 comments on commit 943add0

Please sign in to comment.