Skip to content

Commit

Permalink
Switch from termbox-go to tcell for compatibility (#446)
Browse files Browse the repository at this point in the history
* use tcell for terminal ui

* vendor gdamore/tcell
  • Loading branch information
qbit authored and dominikschulz committed Nov 5, 2017
1 parent a2374c8 commit 31f2c9d
Show file tree
Hide file tree
Showing 84 changed files with 18,180 additions and 3,137 deletions.
6 changes: 3 additions & 3 deletions utils/termwiz/selection.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"fmt"

"github.com/gdamore/tcell/termbox"
"github.com/justwatchcom/gopass/utils/ctxutil"
runewidth "github.com/mattn/go-runewidth"
"github.com/nsf/termbox-go"
)

func tbprint(x, y int, fg, bg termbox.Attribute, msg string) {
Expand All @@ -30,7 +30,7 @@ func GetSelection(ctx context.Context, prompt, usage string, choices []string) (

termbox.SetInputMode(termbox.InputEsc)
const coldef = termbox.ColorDefault
_ = termbox.Clear(coldef, coldef)
termbox.Clear(coldef, coldef)

cur := 0
for {
Expand All @@ -40,7 +40,7 @@ func GetSelection(ctx context.Context, prompt, usage string, choices []string) (
return "aborted", cur
default:
}
_ = termbox.Clear(coldef, coldef)
termbox.Clear(coldef, coldef)
tbprint(0, 0, coldef, coldef, prompt+"Please select:")
_, h := termbox.Size()
offset := 0
Expand Down
202 changes: 202 additions & 0 deletions vendor/github.com/gdamore/encoding/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions vendor/github.com/gdamore/encoding/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions vendor/github.com/gdamore/encoding/ascii.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 31f2c9d

Please sign in to comment.