aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/awesome-gocui/termbox-go/escwait.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-11-10 13:14:42 +0100
committerGitHub <noreply@github.com>2019-11-10 13:14:42 +0100
commiteaf963164cad17f87999f8a781ff9b688729b31c (patch)
tree68ecd87689ee16ad3de5a0e77dc13ad618fb6962 /vendor/github.com/awesome-gocui/termbox-go/escwait.go
parent318039df31b0846de85e6469d75c3fd5fe5a00a1 (diff)
parent965102f73c5a935bd35dde4ae27a187cdc5ad0ea (diff)
downloadgit-bug-eaf963164cad17f87999f8a781ff9b688729b31c.tar.gz
Merge pull request #242 from MichaelMure/gocui
termui: migrate to awesome-gocui instead of the old fork I had
Diffstat (limited to 'vendor/github.com/awesome-gocui/termbox-go/escwait.go')
-rw-r--r--vendor/github.com/awesome-gocui/termbox-go/escwait.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/github.com/awesome-gocui/termbox-go/escwait.go b/vendor/github.com/awesome-gocui/termbox-go/escwait.go
new file mode 100644
index 00000000..b7bbb891
--- /dev/null
+++ b/vendor/github.com/awesome-gocui/termbox-go/escwait.go
@@ -0,0 +1,11 @@
+// +build !darwin
+
+package termbox
+
+// On all systems other than macOS, disable behavior which will wait before
+// deciding that the escape key was pressed, to account for partially send
+// escape sequences, especially with regard to lengthy mouse sequences.
+// See https://github.com/nsf/termbox-go/issues/132
+func enable_wait_for_escape_sequence() bool {
+ return false
+}