neo-blessed/test/widget-play.js

14 lines
292 B
JavaScript
Raw Normal View History

2015-05-14 04:00:55 +00:00
var blessed = require('../');
var screen = blessed.screen({
dump: __dirname + '/logs/play.log',
smartCSR: true
});
var frames = require(__dirname + '/frames.json');
setInterval(function() {
if (!frames.length) return process.exit(0);
process.stdout.write(frames.shift());
}, 100);