Sha256: 6382f3f5612821e725bf2299b51bd33b56a9a102d3d007c41076bb1c6f31f5c8

Contents?: true

Size: 268 Bytes

Versions: 28

Compression:

Stored size: 268 Bytes

Contents

exports.isatty = function(){
  return true;
};

exports.getWindowSize = function(){
  if ('innerHeight' in global) {
    return [global.innerHeight, global.innerWidth];
  } else {
    // In a Web Worker, the DOM Window is not available.
    return [640, 480];
  }
};

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
stylus-source-0.42.2 vendor/node_modules/mocha/lib/browser/tty.js
stylus-source-0.42.1 vendor/node_modules/mocha/lib/browser/tty.js
stylus-source-0.42.0 vendor/node_modules/mocha/lib/browser/tty.js
stylus-source-0.41.3 vendor/node_modules/mocha/lib/browser/tty.js
stylus-source-0.41.2 vendor/node_modules/mocha/lib/browser/tty.js
stylus-source-0.41.1 vendor/node_modules/mocha/lib/browser/tty.js
stylus-source-0.41.0 vendor/node_modules/mocha/lib/browser/tty.js
stylus-source-0.40.3 vendor/node_modules/mocha/lib/browser/tty.js
stylus-source-0.40.2 vendor/node_modules/mocha/lib/browser/tty.js
stylus-source-0.40.1 vendor/node_modules/mocha/lib/browser/tty.js
stylus-source-0.40.0 vendor/node_modules/mocha/lib/browser/tty.js
stylus-source-0.39.4 vendor/node_modules/mocha/lib/browser/tty.js
stylus-source-0.39.3 vendor/node_modules/mocha/lib/browser/tty.js
stylus-source-0.39.2 vendor/node_modules/mocha/lib/browser/tty.js
stylus-source-0.39.1 vendor/node_modules/mocha/lib/browser/tty.js
stylus-source-0.39.0 vendor/node_modules/mocha/lib/browser/tty.js
stylus-source-0.38.0 vendor/node_modules/mocha/lib/browser/tty.js
stylus-source-0.37.0 vendor/node_modules/mocha/lib/browser/tty.js
stylus-source-0.36.1 vendor/node_modules/mocha/lib/browser/tty.js
stylus-source-0.36.0 vendor/node_modules/mocha/lib/browser/tty.js