2015-05-14 04:00:55 +00:00
|
|
|
var blessed = require('../');
|
|
|
|
|
|
|
|
var screen = blessed.screen({
|
|
|
|
dump: __dirname + '/logs/play.log',
|
2015-07-22 02:23:57 +00:00
|
|
|
smartCSR: true,
|
|
|
|
warnings: true
|
2015-05-14 04:00:55 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
var frames = require(__dirname + '/frames.json');
|
|
|
|
|
2015-08-08 04:00:31 +00:00
|
|
|
var timer = setInterval(function() {
|
|
|
|
if (!frames.length) {
|
|
|
|
clearInterval(timer);
|
|
|
|
return screen.destroy();
|
|
|
|
}
|
2015-05-14 04:00:55 +00:00
|
|
|
process.stdout.write(frames.shift());
|
|
|
|
}, 100);
|