Skip to content

Commit

Permalink
fix: resizing window on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Im-Beast committed Aug 1, 2023
1 parent e12f3e4 commit 3886d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3886d99

Please sign in to comment.