File tree 1 file changed +2
-5
lines changed 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,6 @@ var vt100EscapeCodes = EscapeCodes{
38
38
}
39
39
40
40
// A History provides a (possibly bounded) queue of input lines read by [Terminal.ReadLine].
41
- //
42
- // The default implementation of History provides a simple ring buffer limited
43
- // to 100 slots. Clients can provide alternate implementations of History to
44
- // change this behavior.
45
41
type History interface {
46
42
// Add will be called by [Terminal.ReadLine] to add
47
43
// a new, most recent entry to the history.
@@ -116,7 +112,8 @@ type Terminal struct {
116
112
//
117
113
// It is not safe to call ReadLine concurrently with any methods on History.
118
114
//
119
- // [NewTerminal] sets this to an implementation that records the last 100 lines of input.
115
+ // [NewTerminal] sets this to a default implementation that records the
116
+ // last 100 lines of input.
120
117
History History
121
118
// historyIndex stores the currently accessed history entry, where zero
122
119
// means the immediately previous entry.
You can’t perform that action at this time.
0 commit comments