From 943add0689d8bc6c86d30fb7e904f1cca28812dc Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Mon, 22 Apr 2024 10:34:23 -0400 Subject: [PATCH] docs(term): input: typo --- exp/term/examples/readinput/main.go | 2 +- exp/term/input/parse.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exp/term/examples/readinput/main.go b/exp/term/examples/readinput/main.go index f6942a78..53dbbd16 100644 --- a/exp/term/examples/readinput/main.go +++ b/exp/term/examples/readinput/main.go @@ -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 diff --git a/exp/term/input/parse.go b/exp/term/input/parse.go index 9eb11d18..914382dd 100644 --- a/exp/term/input/parse.go +++ b/exp/term/input/parse.go @@ -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)} }