Skip to content

Commit

Permalink
fix: is_interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen committed Sep 8, 2021
1 parent eae1b7e commit 0c98197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions is_interactive.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export function isInteractive(stream: { rid: number }): boolean {
if (Deno.permissions.query({ name: "env" })) {
export async function isInteractive(stream: { rid: number }): Promise<boolean> {
if (await Deno.permissions.query({ name: "env" })) {
return (
Deno.isatty(stream.rid) &&
Deno.env.get("TERM") !== "dumb" &&
Expand Down

0 comments on commit 0c98197

Please sign in to comment.