Fix the check for emacs-eshell terminal

This commit is contained in:
Slava Kim
2015-03-03 15:49:38 -08:00
parent 241565c40b
commit c47f0d8a67

View File

@@ -1180,7 +1180,7 @@ _.extend(Console.prototype, {
} else if ((! self._stream.isTTY) || (! self._pretty)) {
// No progress bar if not in pretty / on TTY.
newProgressDisplay = new ProgressDisplayNone(self);
} else if (self._stream.isTTY && ! self.width()) {
} else if (self._stream.isTTY && ! self._stream.columns) {
// We might be in a pseudo-TTY that doesn't support
// clearLine() and cursorTo(...).
// It's important that we only enter status message mode