* Start of work on re-write of SGR stuff related to MCI codes

This commit is contained in:
Bryan Ashby 2015-04-29 15:38:20 -06:00
parent 48be2f69be
commit 3f29e3dba4
10 changed files with 110 additions and 94 deletions

View file

@ -456,22 +456,29 @@ function display(options, cb) {
var mapItem = mciCode + id;
// :TODO: Avoid mutiple [] lookups here
if(mci[mapItem]) {
mci[mapItem].focusGraphicRendition = parser.graphicRendition;
/*
mci[mapItem].focusColor = {
fg : parser.fgColor,
bg : parser.bgColor,
flags : parser.style,
};
*/
mci[mapItem].focusArgs = args;
} else {
mci[mapItem] = {
args : args,
args : args,
/*
color : {
fg : parser.fgColor,
bg : parser.bgColor,
flags : parser.style,
},
code : mciCode,
id : parseInt(id, 10),
*/
graphicRendition : parser.graphicRendition,
code : mciCode,
id : parseInt(id, 10),
};
mciPosQueue.push(mapItem);