summaryrefslogtreecommitdiff
path: root/tui/windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'tui/windows.go')
-rw-r--r--tui/windows.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/tui/windows.go b/tui/windows.go
new file mode 100644
index 0000000..61184d3
--- /dev/null
+++ b/tui/windows.go
@@ -0,0 +1,16 @@
+//go:build windows
+package tui
+
+import "time"
+
+func detectSizeChange() {
+ tick := time.Tick(time.Second / 60)
+ size := Size()
+ for _ = range tick {
+ new := Size()
+ if size != new {
+ size = new
+ sendEvent(Event {Resize: true})
+ }
+ }
+}