diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2016-10-24 09:44:56 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-11-07 02:32:14 +0900 |
commit | 0c573b3dffe806253e1df2447754a5f3939a11f0 (patch) | |
tree | 1fba66a85b6ce48ff3afca18f234a0e0b6ff0822 /src/terminal_unix.go | |
parent | 2cff00dce24df2a7e5add001423c6d8200b57c87 (diff) |
Prepare for termbox/windows build
`TAGS=termbox make` (or `go build -tags termbox`)
Diffstat (limited to 'src/terminal_unix.go')
-rw-r--r-- | src/terminal_unix.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/terminal_unix.go b/src/terminal_unix.go new file mode 100644 index 00000000..6284c22d --- /dev/null +++ b/src/terminal_unix.go @@ -0,0 +1,13 @@ +// +build !windows + +package fzf + +import ( + "os" + "os/signal" + "syscall" +) + +func notifyOnResize(resizeChan chan<- os.Signal) { + signal.Notify(resizeChan, syscall.SIGWINCH) +} |