+ Start of iCE color support... ish.

* Initial NU-MAYA theme matrix
This commit is contained in:
Bryan Ashby
2014-11-09 21:24:09 -07:00
parent f2388ceed1
commit 7bac1b5193
6 changed files with 39 additions and 7 deletions

View File

@@ -173,6 +173,9 @@ function parseCharacterSAUCE(sauce) {
result.fileType = SAUCE_CHARACTER_FILE_TYPES[sauce.fileType] || 'Unknown';
if(sauce.fileType === 0 || sauce.fileType === 1 || sauce.fileType === 2) {
// convience: create ansiFlags
sauce.ansiFlags = sauce.flags;
var i = 0;
while(i < sauce.tinfos.length && sauce.tinfos[i] !== 0x00) {
++i;
@@ -384,6 +387,7 @@ function display(options, cb) {
var pauseKeys = miscUtil.valueWithDefault(options.pauseKeys, []);
var pauseAtTermHeight = miscUtil.valueWithDefault(options.pauseAtTermHeight, false);
var mciReplaceChar = miscUtil.valueWithDefault(options.mciReplaceChar, ' ');
var iceColors = miscUtil.valueWithDefault(options.iceColors, false);
// :TODO: support pause/cancel & pause @ termHeight
var canceled = false;
@@ -414,6 +418,11 @@ function display(options, cb) {
function completed() {
options.client.removeListener('cursor position report', onCPR);
parser.removeAllListeners(); // :TODO: Necessary???
if(iceColors) {
options.client.term.write(ansi.blinkNormal());
}
cb(null, mci);
}
@@ -460,5 +469,9 @@ function display(options, cb) {
}
});
if(iceColors) {
options.client.term.write(ansi.blinkToBrightIntensity());
}
parser.parse(options.art);
}