Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
module github.com/gcla/gowid

go 1.13
go 1.24.0

require (
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc // indirect
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf // indirect
github.com/araddon/dateparse v0.0.0-20210207001429-0eec95c9db7e
github.com/creack/pty v1.1.15
github.com/gdamore/tcell/v2 v2.5.0
github.com/gdamore/tcell/v2 v2.13.10
github.com/go-test/deep v1.0.1
github.com/guptarohit/asciigraph v0.4.1
github.com/hashicorp/golang-lru v0.5.1
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0
github.com/lucasb-eyer/go-colorful v1.3.0
github.com/mattn/go-runewidth v0.0.13
github.com/pkg/errors v0.8.1
github.com/rakyll/statik v0.1.6
github.com/sirupsen/logrus v1.4.2
github.com/stretchr/testify v1.7.0
golang.org/x/text v0.3.7
golang.org/x/text v0.31.0
gopkg.in/alecthomas/kingpin.v2 v2.2.6
)

require (
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc // indirect
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/gdamore/encoding v1.0.1 // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
golang.org/x/sys v0.38.0 // indirect
golang.org/x/term v0.37.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
)
53 changes: 41 additions & 12 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ github.com/creack/pty v1.1.15/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/gdamore/encoding v1.0.0 h1:+7OoQ1Bc6eTm5niUzBa0Ctsh6JbMW6Ra+YNuAtDBdko=
github.com/gdamore/encoding v1.0.0/go.mod h1:alR0ol34c49FCSBLjhosxzcPHQbf2trDkoo5dl+VrEg=
github.com/gdamore/tcell/v2 v2.5.0 h1:/LA5f/wqTP5mWT79czngibKVVx5wOgdFTIXPQ68fMO8=
github.com/gdamore/tcell/v2 v2.5.0/go.mod h1:wSkrPaXoiIWZqW/g7Px4xc79di6FTcpB8tvaKJ6uGBo=
github.com/gdamore/encoding v1.0.1 h1:YzKZckdBL6jVt2Gc+5p82qhrGiqMdG/eNs6Wy0u3Uhw=
github.com/gdamore/encoding v1.0.1/go.mod h1:0Z0cMFinngz9kS1QfMjCP8TY7em3bZYeeklsSDPivEo=
github.com/gdamore/tcell/v2 v2.13.10 h1:Afs3JKt83HnhuUKdZ3MnxUgOqQRWftj5JyDqv1LLynA=
github.com/gdamore/tcell/v2 v2.13.10/go.mod h1:+Wfe208WDdB7INEtCsNrAN6O2m+wsTPk1RAovjaILlo=
github.com/go-test/deep v1.0.1 h1:UQhStjbkDClarlmv0am7OXXO4/GaPdCGiUiMTvi28sg=
github.com/go-test/deep v1.0.1/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
github.com/guptarohit/asciigraph v0.4.1 h1:YHmCMN8VH81BIUIgTg2Fs3B52QDxNZw2RQ6j5pGoSxo=
Expand All @@ -22,8 +22,8 @@ github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/konsorten/go-windows-terminal-sequences v1.0.2 h1:DB17ag19krx9CFsz4o3enTrPXyIXCl+2iCXH/aMAp9s=
github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
github.com/lucasb-eyer/go-colorful v1.3.0 h1:2/yBRLdWBZKrf7gB40FoiKfAWYQ0lqNcbuQwVHXptag=
github.com/lucasb-eyer/go-colorful v1.3.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
github.com/mattn/go-runewidth v0.0.10/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU=
github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
Expand All @@ -34,8 +34,9 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
github.com/rakyll/statik v0.1.6 h1:uICcfUXpgqtw2VopbIncslhAmE5hwc4g20TEyEENBNs=
github.com/rakyll/statik v0.1.6/go.mod h1:OEi9wJV/fMUAGx1eNjq75DKDsJVuEv1U0oYdX6GX8Zs=
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
github.com/scylladb/termtables v0.0.0-20191203121021-c4c0b6d42ff4/go.mod h1:C1a7PQSMz9NShzorzCiG2fk9+xuCgLkPeCvMHYR2OWg=
github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4=
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
Expand All @@ -44,16 +45,44 @@ github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20220318055525-2edf467146b5 h1:saXMvIOKvRFwbOMicHXr0B1uwoxq9dGmLe5ExMES6c4=
golang.org/x/sys v0.0.0-20220318055525-2edf467146b5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf h1:MZ2shdL+ZM/XzY3ZGOnh4Nlpnxz5GSOhOmtHo3iPU6M=
golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=
golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
golang.org/x/term v0.37.0 h1:8EGAD0qCmHYZg6J17DvsMy9/wJ7/D/4pV/wfnld5lTU=
golang.org/x/term v0.37.0/go.mod h1:5pB4lxRNYYVZuTLmy8oR2BH8dflOR+IbTYFD8fi3254=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM=
golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gopkg.in/alecthomas/kingpin.v2 v2.2.6 h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc=
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
Expand Down
202 changes: 18 additions & 184 deletions widgets/terminal/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,20 @@ func (e EventNotSupported) Error() string {
}

func pasteStart(ti *terminfo.Terminfo) []byte {
if ti.PasteStart != "" {
return []byte(ti.PasteStart)
} else {
return []byte("\x1b[200~")
}
return []byte("\x1b[200~")
}

func pasteEnd(ti *terminfo.Terminfo) []byte {
if ti.PasteEnd != "" {
return []byte(ti.PasteEnd)
} else {
return []byte("\x1b[201~")
}
return []byte("\x1b[201~")
}

func enablePaste(ti *terminfo.Terminfo) []byte {
if ti.EnablePaste != "" {
return []byte(ti.EnablePaste)
} else {
return []byte("\x1b[?2004h")
}
return []byte("\x1b[?2004h")

}

func disablePaste(ti *terminfo.Terminfo) []byte {
if ti.DisablePaste != "" {
return []byte(ti.DisablePaste)
} else {
return []byte("\x1b[?2004l")
}
return []byte("\x1b[?2004l")
}

// TCellEventToBytes converts TCell's representation of a terminal event to
Expand Down Expand Up @@ -95,170 +80,19 @@ func TCellEventToBytes(ev interface{}, mouse IMouseSupport, last gowid.MouseStat
case tcell.KeyCR:
str := []rune{rune(tcell.KeyCR)}
res = append(res, string(str)...)
case tcell.KeyF1:
res = append(res, ti.KeyF1...)
case tcell.KeyF2:
res = append(res, ti.KeyF2...)
case tcell.KeyF3:
res = append(res, ti.KeyF3...)
case tcell.KeyF4:
res = append(res, ti.KeyF4...)
case tcell.KeyF5:
res = append(res, ti.KeyF5...)
case tcell.KeyF6:
res = append(res, ti.KeyF6...)
case tcell.KeyF7:
res = append(res, ti.KeyF7...)
case tcell.KeyF8:
res = append(res, ti.KeyF8...)
case tcell.KeyF9:
res = append(res, ti.KeyF9...)
case tcell.KeyF10:
res = append(res, ti.KeyF10...)
case tcell.KeyF11:
res = append(res, ti.KeyF11...)
case tcell.KeyF12:
res = append(res, ti.KeyF12...)
case tcell.KeyF13:
res = append(res, ti.KeyF13...)
case tcell.KeyF14:
res = append(res, ti.KeyF14...)
case tcell.KeyF15:
res = append(res, ti.KeyF15...)
case tcell.KeyF16:
res = append(res, ti.KeyF16...)
case tcell.KeyF17:
res = append(res, ti.KeyF17...)
case tcell.KeyF18:
res = append(res, ti.KeyF18...)
case tcell.KeyF19:
res = append(res, ti.KeyF19...)
case tcell.KeyF20:
res = append(res, ti.KeyF20...)
case tcell.KeyF21:
res = append(res, ti.KeyF21...)
case tcell.KeyF22:
res = append(res, ti.KeyF22...)
case tcell.KeyF23:
res = append(res, ti.KeyF23...)
case tcell.KeyF24:
res = append(res, ti.KeyF24...)
case tcell.KeyF25:
res = append(res, ti.KeyF25...)
case tcell.KeyF26:
res = append(res, ti.KeyF26...)
case tcell.KeyF27:
res = append(res, ti.KeyF27...)
case tcell.KeyF28:
res = append(res, ti.KeyF28...)
case tcell.KeyF29:
res = append(res, ti.KeyF29...)
case tcell.KeyF30:
res = append(res, ti.KeyF30...)
case tcell.KeyF31:
res = append(res, ti.KeyF31...)
case tcell.KeyF32:
res = append(res, ti.KeyF32...)
case tcell.KeyF33:
res = append(res, ti.KeyF33...)
case tcell.KeyF34:
res = append(res, ti.KeyF34...)
case tcell.KeyF35:
res = append(res, ti.KeyF35...)
case tcell.KeyF36:
res = append(res, ti.KeyF36...)
case tcell.KeyF37:
res = append(res, ti.KeyF37...)
case tcell.KeyF38:
res = append(res, ti.KeyF38...)
case tcell.KeyF39:
res = append(res, ti.KeyF39...)
case tcell.KeyF40:
res = append(res, ti.KeyF40...)
case tcell.KeyF41:
res = append(res, ti.KeyF41...)
case tcell.KeyF42:
res = append(res, ti.KeyF42...)
case tcell.KeyF43:
res = append(res, ti.KeyF43...)
case tcell.KeyF44:
res = append(res, ti.KeyF44...)
case tcell.KeyF45:
res = append(res, ti.KeyF45...)
case tcell.KeyF46:
res = append(res, ti.KeyF46...)
case tcell.KeyF47:
res = append(res, ti.KeyF47...)
case tcell.KeyF48:
res = append(res, ti.KeyF48...)
case tcell.KeyF49:
res = append(res, ti.KeyF49...)
case tcell.KeyF50:
res = append(res, ti.KeyF50...)
case tcell.KeyF51:
res = append(res, ti.KeyF51...)
case tcell.KeyF52:
res = append(res, ti.KeyF52...)
case tcell.KeyF53:
res = append(res, ti.KeyF53...)
case tcell.KeyF54:
res = append(res, ti.KeyF54...)
case tcell.KeyF55:
res = append(res, ti.KeyF55...)
case tcell.KeyF56:
res = append(res, ti.KeyF56...)
case tcell.KeyF57:
res = append(res, ti.KeyF57...)
case tcell.KeyF58:
res = append(res, ti.KeyF58...)
case tcell.KeyF59:
res = append(res, ti.KeyF59...)
case tcell.KeyF60:
res = append(res, ti.KeyF60...)
case tcell.KeyF61:
res = append(res, ti.KeyF61...)
case tcell.KeyF62:
res = append(res, ti.KeyF62...)
case tcell.KeyF63:
res = append(res, ti.KeyF63...)
case tcell.KeyF64:
res = append(res, ti.KeyF64...)
case tcell.KeyInsert:
res = append(res, ti.KeyInsert...)
case tcell.KeyDelete:
res = append(res, ti.KeyDelete...)
case tcell.KeyHome:
res = append(res, ti.KeyHome...)
case tcell.KeyEnd:
res = append(res, ti.KeyEnd...)
case tcell.KeyHelp:
res = append(res, ti.KeyHelp...)
case tcell.KeyPgUp:
res = append(res, ti.KeyPgUp...)
case tcell.KeyPgDn:
res = append(res, ti.KeyPgDn...)
case tcell.KeyUp:
res = append(res, ti.KeyUp...)
case tcell.KeyDown:
res = append(res, ti.KeyDown...)
case tcell.KeyLeft:
res = append(res, ti.KeyLeft...)
case tcell.KeyRight:
res = append(res, ti.KeyRight...)
case tcell.KeyBacktab:
res = append(res, ti.KeyBacktab...)
case tcell.KeyExit:
res = append(res, ti.KeyExit...)
case tcell.KeyClear:
res = append(res, ti.KeyClear...)
case tcell.KeyPrint:
res = append(res, ti.KeyPrint...)
case tcell.KeyCancel:
res = append(res, ti.KeyCancel...)
case tcell.KeyDEL:
res = append(res, ti.KeyBackspace...)
case tcell.KeyBackspace:
res = append(res, ti.KeyBackspace...)
case tcell.KeyF1, tcell.KeyF2, tcell.KeyF3, tcell.KeyF4, tcell.KeyF5, tcell.KeyF6, tcell.KeyF7, tcell.KeyF8, tcell.KeyF9,
tcell.KeyF10, tcell.KeyF11, tcell.KeyF12, tcell.KeyF13, tcell.KeyF14, tcell.KeyF15, tcell.KeyF16, tcell.KeyF17,
tcell.KeyF18, tcell.KeyF19, tcell.KeyF20, tcell.KeyF21, tcell.KeyF22, tcell.KeyF23, tcell.KeyF24, tcell.KeyF25,
tcell.KeyF26, tcell.KeyF27, tcell.KeyF28, tcell.KeyF29, tcell.KeyF30, tcell.KeyF31, tcell.KeyF32, tcell.KeyF33,
tcell.KeyF34, tcell.KeyF35, tcell.KeyF36, tcell.KeyF37, tcell.KeyF38, tcell.KeyF39, tcell.KeyF40, tcell.KeyF41,
tcell.KeyF42, tcell.KeyF43, tcell.KeyF44, tcell.KeyF45, tcell.KeyF46, tcell.KeyF47, tcell.KeyF48, tcell.KeyF49,
tcell.KeyF50, tcell.KeyF51, tcell.KeyF52, tcell.KeyF53, tcell.KeyF54, tcell.KeyF55, tcell.KeyF56, tcell.KeyF57,
tcell.KeyF58, tcell.KeyF59, tcell.KeyF60, tcell.KeyF61, tcell.KeyF62, tcell.KeyF63, tcell.KeyF64,
tcell.KeyInsert, tcell.KeyDelete, tcell.KeyHome, tcell.KeyEnd, tcell.KeyHelp, tcell.KeyPgUp, tcell.KeyPgDn,
tcell.KeyUp, tcell.KeyDown, tcell.KeyLeft, tcell.KeyRight, tcell.KeyBacktab, tcell.KeyExit, tcell.KeyClear,
tcell.KeyPrint, tcell.KeyCancel, tcell.KeyDEL, tcell.KeyBackspace:
str := []rune{ev.Rune()}
res = append(res, string(str)...)
default:
res2 = false
panic(EventNotSupported{Event: ev})
Expand Down