Use doronbehar's fork of termbox (#311)

This commit is contained in:
Doron Behar 2020-03-20 20:59:30 +02:00 committed by GitHub
parent 17949fc25a
commit 6693709f36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 8 deletions

View File

@ -1,6 +1,6 @@
language: go
install:
- go get github.com/nsf/termbox-go
- go get github.com/doronbehar/termbox-go
- go get gopkg.in/djherbis/times.v1
before_deploy:
- gen/xbuild.sh

View File

@ -10,7 +10,7 @@ import (
"strings"
"time"
"github.com/nsf/termbox-go"
"github.com/doronbehar/termbox-go"
)
func run() {

View File

@ -7,7 +7,7 @@ import (
"strconv"
"strings"
"github.com/nsf/termbox-go"
"github.com/doronbehar/termbox-go"
)
const gAnsiColorResetMask = termbox.AttrBold | termbox.AttrUnderline | termbox.AttrReverse

View File

@ -3,7 +3,7 @@ package main
import (
"testing"
"github.com/nsf/termbox-go"
"github.com/doronbehar/termbox-go"
)
func TestApplyAnsiCodes(t *testing.T) {

2
go.mod
View File

@ -3,7 +3,7 @@ module github.com/gokcehan/lf
go 1.12
require (
github.com/doronbehar/termbox-go v0.0.0-20191006141301-8c9470559e05
github.com/mattn/go-runewidth v0.0.4
github.com/nsf/termbox-go v0.0.0-20190325093121-288510b9734e
gopkg.in/djherbis/times.v1 v1.2.0
)

8
go.sum
View File

@ -1,6 +1,10 @@
github.com/doronbehar/termbox-go v0.0.0-20190817171036-93860e161317 h1:mdOm+1RdYwVwC4Wjb53M5L96fRwWJ8gI7YXwwiCsHTk=
github.com/doronbehar/termbox-go v0.0.0-20190817171036-93860e161317/go.mod h1:cHYbFQiZNC8LPG6clYoLMKAl0xx7KR75RPsHtG/f1Hk=
github.com/doronbehar/termbox-go v0.0.0-20191006140624-aa2cdd26fb8c h1:qvLYQAhDCaMq+XiQ+t4YLaTJtUyHC1r20odd6ryKYIk=
github.com/doronbehar/termbox-go v0.0.0-20191006140624-aa2cdd26fb8c/go.mod h1:cHYbFQiZNC8LPG6clYoLMKAl0xx7KR75RPsHtG/f1Hk=
github.com/doronbehar/termbox-go v0.0.0-20191006141301-8c9470559e05 h1:pmXx7j8+mmkFJB2+qoB1C/Mz8SWvMlHTxSWOptJrr7E=
github.com/doronbehar/termbox-go v0.0.0-20191006141301-8c9470559e05/go.mod h1:cHYbFQiZNC8LPG6clYoLMKAl0xx7KR75RPsHtG/f1Hk=
github.com/mattn/go-runewidth v0.0.4 h1:2BvfKmzob6Bmd4YsL0zygOqfdFnK7GR4QL06Do4/p7Y=
github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
github.com/nsf/termbox-go v0.0.0-20190325093121-288510b9734e h1:Vbib8wJAaMEF9jusI/kMSYMr/LtRzM7+F9MJgt/nH8k=
github.com/nsf/termbox-go v0.0.0-20190325093121-288510b9734e/go.mod h1:IuKpRQcYE1Tfu+oAQqaLisqDeXgjyyltCfsaoYN18NQ=
gopkg.in/djherbis/times.v1 v1.2.0 h1:UCvDKl1L/fmBygl2Y7hubXCnY7t4Yj46ZrBFNUipFbM=
gopkg.in/djherbis/times.v1 v1.2.0/go.mod h1:AQlg6unIsrsCEdQYhTzERy542dz6SFdQFZFv6mUY0P8=

2
ui.go
View File

@ -16,7 +16,7 @@ import (
"unicode/utf8"
"github.com/mattn/go-runewidth"
"github.com/nsf/termbox-go"
"github.com/doronbehar/termbox-go"
)
const gEscapeCode = 27