interactive

tcmts.cli.ui.interactive · #t4pofczq · term · runs on the server

uses process

Whether there's someone to ask: a terminal on both ends, and not CI.

export function interactive(): boolean {
  return !!process.stdin.isTTY && !!process.stdout.isTTY && !process.env.CI && process.env.TERM !== "dumb";
}

used by