Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

index.js 356B

123456789101112131415
  1. #!/usr/bin/env node
  2. /**
  3. * Like GNU ncurses "clear" command.
  4. * https://github.com/mscdex/node-ncurses/blob/master/deps/ncurses/progs/clear.c
  5. */
  6. process.title = 'clear'
  7. function lf () { return '\n' }
  8. require('../../')(process.stdout)
  9. .write(Array.apply(null, Array(process.stdout.getWindowSize()[1])).map(lf).join(''))
  10. .eraseData(2)
  11. .goto(1, 1)