From 621281355fd577da77f135c4e15552eba3ead584 Mon Sep 17 00:00:00 2001 From: Laurent Demailly Date: Fri, 18 Apr 2025 11:42:52 -0700 Subject: [PATCH] Review comments --- terminal.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/terminal.go b/terminal.go index f419bf3..13e9a64 100644 --- a/terminal.go +++ b/terminal.go @@ -38,10 +38,6 @@ var vt100EscapeCodes = EscapeCodes{ } // A History provides a (possibly bounded) queue of input lines read by [Terminal.ReadLine]. -// -// The default implementation of History provides a simple ring buffer limited -// to 100 slots. Clients can provide alternate implementations of History to -// change this behavior. type History interface { // Add will be called by [Terminal.ReadLine] to add // a new, most recent entry to the history. @@ -116,7 +112,8 @@ type Terminal struct { // // It is not safe to call ReadLine concurrently with any methods on History. // - // [NewTerminal] sets this to an implementation that records the last 100 lines of input. + // [NewTerminal] sets this to a default implementation that records the + // last 100 lines of input. History History // historyIndex stores the currently accessed history entry, where zero // means the immediately previous entry.