This commit is contained in:
Christopher Jeffrey 2015-04-21 05:08:16 -07:00
parent 9a75c29281
commit 429afdc541
1 changed files with 3 additions and 1 deletions

View File

@ -190,7 +190,9 @@ list.on('select', function(el, selected) {
screen.render();
if (process.argv[2] === '--debug' || process.argv[2] === '--save') {
// var sgr = blessed.element.prototype.screenshot.call(art);
//var sgr = blessed.element.prototype.screenshot.call(art,
// 0 - art.ileft, art.width - art.iright,
// 0 - art.itop, art.height - art.ibottom);
var sgr = art.screenshot();
fs.writeFileSync(__dirname + '/' + filename + '.sgr', sgr);
}