tty.js 290 B

12345678910111213
  1. 'use strict';
  2. exports.isatty = function isatty() {
  3. return true;
  4. };
  5. exports.getWindowSize = function getWindowSize() {
  6. if ('innerHeight' in global) {
  7. return [global.innerHeight, global.innerWidth];
  8. }
  9. // In a Web Worker, the DOM Window is not available.
  10. return [640, 480];
  11. };