1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 04:52:26 -05:00
This commit is contained in:
Divy Srivastava 2025-01-20 23:27:15 +01:00 committed by GitHub
commit a7451b60c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -964,6 +964,11 @@ internals.__bootstrapNodeProcess = function (
"stdout", "stdout",
); );
} }
if (stdout.isTTY) {
Deno.addSignalListener("SIGWINCH", () => {
stdout.emit("resize");
});
}
if (!io.stderr.isTerminal()) { if (!io.stderr.isTerminal()) {
/** https://nodejs.org/api/process.html#process_process_stderr */ /** https://nodejs.org/api/process.html#process_process_stderr */
@ -972,6 +977,11 @@ internals.__bootstrapNodeProcess = function (
"stderr", "stderr",
); );
} }
if (stderr.isTTY) {
Deno.addSignalListener("SIGWINCH", () => {
stderr.emit("resize");
});
}
arch = arch_(); arch = arch_();
platform = isWindows ? "win32" : Deno.build.os; platform = isWindows ? "win32" : Deno.build.os;