* Very very early work on FSE module

This commit is contained in:
Bryan Ashby 2015-06-25 22:34:33 -06:00
parent f56546cae5
commit 32fdbab88d
7 changed files with 117 additions and 56 deletions

View file

@ -380,7 +380,6 @@ function defaultEofFromExtension(ext) {
// :TODO: change to display(art, options, cb)
// cb(err, mci)
// :TODO: display({ art : art, client : client, ...}, cb)
function display(options, cb) {
assert(_.isObject(options));
assert(_.isObject(options.client));
@ -445,7 +444,11 @@ function display(options, cb) {
// options.client.term.write(ansi.blinkNormal());
}
cb(null, mciMap);
var extraInfo = {
height : parser.row - 1
};
cb(null, mciMap, extraInfo);
}
options.client.on('cursor position report', cprListener);
@ -454,6 +457,7 @@ function display(options, cb) {
var nextPauseTermHeight = options.client.term.termHeight;
var continous = false;
/*
parser.on('row update', function rowUpdate(row) {
if(row >= nextPauseTermHeight) {