Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use upstream tcell #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion application.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"sync"
"time"

"go.mau.fi/tcell"
"github.com/gdamore/tcell/v2"
)

type Component interface {
Expand Down
2 changes: 1 addition & 1 deletion box.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
package mauview

import (
"go.mau.fi/tcell"
"github.com/gdamore/tcell/v2"
)

type KeyCaptureFunc func(event KeyEvent) KeyEvent
Expand Down
2 changes: 1 addition & 1 deletion button.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
package mauview

import (
"go.mau.fi/tcell"
"github.com/gdamore/tcell/v2"
)

type Button struct {
Expand Down
2 changes: 1 addition & 1 deletion center.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
package mauview

import (
"go.mau.fi/tcell"
"github.com/gdamore/tcell/v2"
)

type FractionalCenterer struct {
Expand Down
2 changes: 1 addition & 1 deletion eventhandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
package mauview

import (
"go.mau.fi/tcell"
"github.com/gdamore/tcell/v2"
)

// KeyEvent is an interface of the *tcell.EventKey type.
Expand Down
2 changes: 1 addition & 1 deletion flex.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
package mauview

import (
"go.mau.fi/tcell"
"github.com/gdamore/tcell/v2"
)

type FlexDirection int
Expand Down
2 changes: 1 addition & 1 deletion form.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
package mauview

import (
"go.mau.fi/tcell"
"github.com/gdamore/tcell/v2"
)

type Form struct {
Expand Down
12 changes: 6 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ module go.mau.fi/mauview
go 1.18

require (
github.com/mattn/go-runewidth v0.0.14
github.com/rivo/uniseg v0.4.2
github.com/gdamore/tcell/v2 v2.4.0
github.com/mattn/go-runewidth v0.0.15
github.com/rivo/uniseg v0.4.3
github.com/zyedidia/clipboard v1.0.4
go.mau.fi/tcell v0.4.0
)

require (
github.com/gdamore/encoding v1.0.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
golang.org/x/sys v0.2.0 // indirect
golang.org/x/term v0.2.0 // indirect
golang.org/x/text v0.4.0 // indirect
golang.org/x/sys v0.17.0 // indirect
golang.org/x/term v0.17.0 // indirect
golang.org/x/text v0.14.0 // indirect
)
29 changes: 17 additions & 12 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
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.4.0 h1:W6dxJEmaxYvhICFoTY3WrLLEXsQ11SaFnKGVEXW57KM=
github.com/gdamore/tcell/v2 v2.4.0/go.mod h1:cTTuF84Dlj/RqmaCIV5p4w8uG1zWdk0SF6oBpwHp4fU=
github.com/lucasb-eyer/go-colorful v1.0.3/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
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/mattn/go-runewidth v0.0.14 h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWVwUuU=
github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/mattn/go-runewidth v0.0.10/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U=
github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.4.2 h1:YwD0ulJSJytLpiaWua0sBDusfsCZohxjxzVTYjwxfV8=
github.com/rivo/uniseg v0.4.2/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
github.com/rivo/uniseg v0.4.3 h1:utMvzDsuh3suAEnhH0RdHmoPbU648o6CvXxTx4SBMOw=
github.com/rivo/uniseg v0.4.3/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
github.com/zyedidia/clipboard v1.0.4 h1:r6GUQOyPtIaApRLeD56/U+2uJbXis6ANGbKWCljULEo=
github.com/zyedidia/clipboard v1.0.4/go.mod h1:zykFnZUXX0ErxqvYLUFEq7QDJKId8rmh2FgD0/Y8cjA=
go.mau.fi/tcell v0.4.0 h1:IPFKhkzF3yZkcRYjzgYBWWiW0JWPTwEBoXlWTBT8o/4=
go.mau.fi/tcell v0.4.0/go.mod h1:77zV/6KL4Zip1u9ndjswACmu/LWwZ/oe3BE188uWMrA=
golang.org/x/sys v0.2.0 h1:ljd4t30dBnAvMZaQCevtY0xLLD0A+bRZXbgLMLU1F/A=
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.2.0 h1:z85xZCsEl7bi/KwbNADeBYoOP0++7W1ipu+aGnpwzRM=
golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y=
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.17.0 h1:mkTF7LCd6WGJNL3K1Ad7kwxNfYAW6a8a8QqtMblp/4U=
golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg=
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
2 changes: 1 addition & 1 deletion grid.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
package mauview

import (
"go.mau.fi/tcell"
"github.com/gdamore/tcell/v2"
)

type gridChild struct {
Expand Down
2 changes: 1 addition & 1 deletion inputarea.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/mattn/go-runewidth"
"github.com/zyedidia/clipboard"

"go.mau.fi/tcell"
"github.com/gdamore/tcell/v2"
)

// InputArea is a multi-line user-editable text area.
Expand Down
2 changes: 1 addition & 1 deletion inputfield.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

"github.com/mattn/go-runewidth"

"go.mau.fi/tcell"
"github.com/gdamore/tcell/v2"
)

// InputField is a single-line user-editable text field.
Expand Down
Binary file added main
Binary file not shown.
2 changes: 1 addition & 1 deletion mauview-test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
package main

import (
"go.mau.fi/tcell"
"github.com/gdamore/tcell/v2"

"go.mau.fi/mauview"
)
Expand Down
2 changes: 1 addition & 1 deletion progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"sync/atomic"
"time"

"go.mau.fi/tcell"
"github.com/gdamore/tcell/v2"
)

type ProgressBar struct {
Expand Down
2 changes: 1 addition & 1 deletion screen.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
package mauview

import (
"go.mau.fi/tcell"
"github.com/gdamore/tcell/v2"
)

// Screen is a subset of the tcell Screen.
Expand Down
2 changes: 1 addition & 1 deletion semigraphics.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package mauview

import "go.mau.fi/tcell"
import "github.com/gdamore/tcell/v2"

// Semigraphics provides an easy way to access unicode characters for drawing.
//
Expand Down
2 changes: 1 addition & 1 deletion styles.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package mauview

import "go.mau.fi/tcell"
import "github.com/gdamore/tcell/v2"

// Styles defines various colors used when primitives are initialized. These
// may be changed to accommodate a different look and feel.
Expand Down
2 changes: 1 addition & 1 deletion textfield.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package mauview
import (
"sync"

"go.mau.fi/tcell"
"github.com/gdamore/tcell/v2"
)

type TextField struct {
Expand Down
2 changes: 1 addition & 1 deletion textview.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/mattn/go-runewidth"

"go.mau.fi/tcell"
"github.com/gdamore/tcell/v2"
)

// TabSize is the number of spaces with which a tab character will be replaced.
Expand Down
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/mattn/go-runewidth"
"github.com/rivo/uniseg"

"go.mau.fi/tcell"
"github.com/gdamore/tcell/v2"
)

// Text alignment within a box.
Expand Down
Loading