summaryrefslogtreecommitdiff
path: root/tui/windows.go
diff options
context:
space:
mode:
authorraven <citrons@mondecitronne.com>2026-02-20 13:44:41 -0600
committerraven <citrons@mondecitronne.com>2026-02-20 13:47:05 -0600
commit9b7d0bc49ef17e0382751d79b43e230bd3a6ac0b (patch)
tree2a601ac0417966312c5337d66e42f56ce2091728 /tui/windows.go
parent5b6196ebe67cf954bae8212c1a33b869da723e11 (diff)
preliminary windows concessionsHEADmaster
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})
+ }
+ }
+}