Author: Kevin Schoon [kevinschoon@gmail.com]
Hash: 24f8cd8cf0a1977482bc98c845ea1c33d4269612
Timestamp: Sat, 03 Mar 2018 20:16:21 +0000 (6 years ago)

+9 -5 +/-3 browse
update termbox-go dependency
1diff --git a/Gopkg.lock b/Gopkg.lock
2index 94a213a..7234363 100644
3--- a/Gopkg.lock
4+++ b/Gopkg.lock
5 @@ -65,7 +65,7 @@
6 branch = "master"
7 name = "github.com/nsf/termbox-go"
8 packages = ["."]
9- revision = "88b7b944be8bc8d8ec6195fca97c5869ba20f99d"
10+ revision = "e2050e41c8847748ec5288741c0b19a8cb26d084"
11
12 [[projects]]
13 branch = "master"
14 diff --git a/vendor/github.com/nsf/termbox-go/README.md b/vendor/github.com/nsf/termbox-go/README.md
15index 35dcf1b..fcc493d 100644
16--- a/vendor/github.com/nsf/termbox-go/README.md
17+++ b/vendor/github.com/nsf/termbox-go/README.md
18 @@ -1,3 +1,5 @@
19+ [![GoDoc](https://godoc.org/github.com/nsf/termbox-go?status.svg)](http://godoc.org/github.com/nsf/termbox-go)
20+
21 ## Termbox
22 Termbox is a library that provides a minimalistic API which allows the programmer to write text-based user interfaces. The library is crossplatform and has both terminal-based implementations on *nix operating systems and a winapi console based implementation for windows operating systems. The basic idea is an abstraction of the greatest common subset of features available on all major terminals and other terminal-like APIs in a minimalistic fashion. Small API means it is easy to implement, test, maintain and learn it, that's what makes the termbox a distinct library in its area.
23
24 @@ -34,6 +36,3 @@ There are also some interesting projects using termbox-go:
25 - [pinger](https://github.com/hirose31/pinger) helps you to monitor numerous hosts using ICMP ECHO_REQUEST.
26 - [vixl44](https://github.com/sebashwa/vixl44) lets you create pixel art inside your terminal using vim movements
27 - [zterm](https://github.com/varunrau/zterm) is a typing game inspired by http://zty.pe/
28-
29- ### API reference
30- [godoc.org/github.com/nsf/termbox-go](http://godoc.org/github.com/nsf/termbox-go)
31 diff --git a/vendor/github.com/nsf/termbox-go/terminfo.go b/vendor/github.com/nsf/termbox-go/terminfo.go
32index 35dbd70..5d38fce 100644
33--- a/vendor/github.com/nsf/termbox-go/terminfo.go
34+++ b/vendor/github.com/nsf/termbox-go/terminfo.go
35 @@ -151,11 +151,16 @@ func setup_term() (err error) {
36 return
37 }
38
39+ number_sec_len := int16(2)
40+ if header[0] == 542 { // doc says it should be octal 0542, but what I see it terminfo files is 542, learn to program please... thank you..
41+ number_sec_len = 4
42+ }
43+
44 if (header[1]+header[2])%2 != 0 {
45 // old quirk to align everything on word boundaries
46 header[2] += 1
47 }
48- str_offset = ti_header_length + header[1] + header[2] + 2*header[3]
49+ str_offset = ti_header_length + header[1] + header[2] + number_sec_len*header[3]
50 table_offset = str_offset + 2*header[4]
51
52 keys = make([]string, 0xFFFF-key_min)