Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
use notty when TERM=dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Dickey committed Aug 1, 2016
1 parent 8a5e2ce commit 913e54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let read = {
mask: ask => read.raw(ask, true),
raw: (ask, maskAfter) => {
// masking isn't available without setRawMode
if (!stdin.setRawMode) return read.notty(ask)
if (!stdin.setRawMode || process.env.TERM === 'dumb') return read.notty(ask)
return new Promise(function (resolve, reject) {
const ansi = require('ansi-escapes')

Expand Down

0 comments on commit 913e54c

Please sign in to comment.