Skip to content

Commit 816dfab

Browse files
committed
Use latest version of term PR and demo ability to output in At() as well
1 parent 5ba543a commit 816dfab

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ require (
1515
)
1616

1717
// Remove when the final history PR gets merged.
18-
replace golang.org/x/term => github.com/ldemailly/term v0.0.0-20250321073845-fe1e3a49b77f
18+
replace golang.org/x/term => github.com/ldemailly/term v0.0.0-20250321160327-bad1ef1afeb0
1919

2020
require (
2121
fortio.org/sets v1.2.0 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
2424
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
2525
github.com/kortschak/goroutine v1.1.2 h1:lhllcCuERxMIK5cYr8yohZZScL1na+JM5JYPRclWjck=
2626
github.com/kortschak/goroutine v1.1.2/go.mod h1:zKpXs1FWN/6mXasDQzfl7g0LrGFIOiA6cLs9eXKyaMY=
27-
github.com/ldemailly/term v0.0.0-20250321073845-fe1e3a49b77f h1:ry23bvRSxEjx6Zys8dk3lzMChKR9ZHud3IMvWU2Ao5E=
28-
github.com/ldemailly/term v0.0.0-20250321073845-fe1e3a49b77f/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g=
27+
github.com/ldemailly/term v0.0.0-20250321160327-bad1ef1afeb0 h1:Bl6ftlOTjrJvFgIptnzcjap2q/aMJsjYDkrGaWAJ4bQ=
28+
github.com/ldemailly/term v0.0.0-20250321160327-bad1ef1afeb0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g=
2929
github.com/loov/hrtime v1.0.3 h1:LiWKU3B9skJwRPUf0Urs9+0+OE3TxdMuiRPOTwR0gcU=
3030
github.com/loov/hrtime v1.0.3/go.mod h1:yDY3Pwv2izeY4sq7YcPX/dtLwzg5NU1AxWuWxKwd0p0=
3131
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=

terminal.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ func (th *TermHistory) Replace(a string) string {
389389
// next most recent, and so on. If such an element doesn't exist then ok is
390390
// false.
391391
func (th *TermHistory) At(n int) (value string, ok bool) {
392+
log.Debugf("Called At(%d) for history (head %d sz %d max %d)", n, th.head, th.size, th.max)
392393
if n < 0 || n >= th.size {
393394
return "", false
394395
}

0 commit comments

Comments
 (0)