mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2024-10-04 08:27:22 +03:00
bump termbox-go
This commit is contained in:
parent
345f02eb11
commit
6ca5afc767
4
Gopkg.lock
generated
4
Gopkg.lock
generated
@ -155,11 +155,11 @@
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
digest = "1:e0306e92cef41d02af05a9f88395ec49c94f0255d54ca88ee3c02ae8f5806ee3"
|
||||
digest = "1:7c71e4035e802da25ad590ae5f1cb0e931b2b4806aa0b5539d53c02a1cf6a64d"
|
||||
name = "github.com/jesseduffield/termbox-go"
|
||||
packages = ["."]
|
||||
pruneopts = "NUT"
|
||||
revision = "a9796224c07f5d757b399082bfee60de9574a2d9"
|
||||
revision = "9dd53af7214ead48bbe380cdf8a3229ec43eeb58"
|
||||
|
||||
[[projects]]
|
||||
branch = "v2"
|
||||
|
4
vendor/github.com/jesseduffield/termbox-go/api.go
generated
vendored
4
vendor/github.com/jesseduffield/termbox-go/api.go
generated
vendored
@ -22,6 +22,8 @@ import "time"
|
||||
// }
|
||||
// defer termbox.Close()
|
||||
func Init() error {
|
||||
quitPolling = make(chan int)
|
||||
|
||||
var err error
|
||||
|
||||
out, err = os.OpenFile("/dev/tty", syscall.O_WRONLY, 0)
|
||||
@ -120,7 +122,7 @@ func Interrupt() {
|
||||
// when termbox's functionality isn't required anymore.
|
||||
func Close() {
|
||||
quit <- 1
|
||||
quitPolling <- 1
|
||||
close(quitPolling)
|
||||
out.WriteString(funcs[t_show_cursor])
|
||||
out.WriteString(funcs[t_sgr0])
|
||||
out.WriteString(funcs[t_clear_screen])
|
||||
|
2
vendor/github.com/jesseduffield/termbox-go/termbox.go
generated
vendored
2
vendor/github.com/jesseduffield/termbox-go/termbox.go
generated
vendored
@ -77,7 +77,7 @@ var (
|
||||
sigwinch = make(chan os.Signal, 1)
|
||||
sigio = make(chan os.Signal, 1)
|
||||
quit = make(chan int)
|
||||
quitPolling = make(chan int)
|
||||
quitPolling chan int // get set on each initialize
|
||||
input_comm = make(chan input_event)
|
||||
interrupt_comm = make(chan struct{})
|
||||
intbuf = make([]byte, 0, 16)
|
||||
|
Loading…
Reference in New Issue
Block a user