From 3886d9980b3366359c96301539c89200ee1126d2 Mon Sep 17 00:00:00 2001 From: Im-Beast Date: Tue, 1 Aug 2023 18:39:29 +0200 Subject: [PATCH] fix: resizing window on windows --- src/tui.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui.ts b/src/tui.ts index cde504d..3443470 100644 --- a/src/tui.ts +++ b/src/tui.ts @@ -90,7 +90,7 @@ export class Tui extends EventEmitter< updateCanvasSize(); if (Deno.build.os === "windows") { - this.canvas.size.subscribe(updateCanvasSize); + setInterval(updateCanvasSize, this.refreshRate); } else { Deno.addSignalListener("SIGWINCH", updateCanvasSize); }