summaryrefslogtreecommitdiff
path: root/tui/posix.go
diff options
context:
space:
mode:
Diffstat (limited to 'tui/posix.go')
-rw-r--r--tui/posix.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/tui/posix.go b/tui/posix.go
new file mode 100644
index 0000000..6a3b859
--- /dev/null
+++ b/tui/posix.go
@@ -0,0 +1,16 @@
+//go:build !windows
+package tui
+
+import (
+ "os"
+ "os/signal"
+ "syscall"
+)
+
+func detectSizeChange() {
+ sigs := make(chan os.Signal, 1)
+ signal.Notify(sigs, syscall.SIGWINCH)
+ for _ = range sigs {
+ sendEvent(Event {Resize: true})
+ }
+}