mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-23 19:20:41 +02:00
+ Very start of theme support. Various changes
This commit is contained in:
parent
46875ccddd
commit
8119c1688a
8 changed files with 95 additions and 34 deletions
|
@ -60,6 +60,14 @@ function View(client, options) {
|
|||
this.isSpecialKeyMapped = function(keySet, keyName) {
|
||||
return this.specialKeyMap[keySet].indexOf(keyName) > -1;
|
||||
};
|
||||
|
||||
this.getANSIColor = function(color) {
|
||||
var sgr = [ color.flags, color.fg ];
|
||||
if(color.bg !== color.flags) {
|
||||
sgr.push(color.bg);
|
||||
}
|
||||
return ansi.sgr(sgr);
|
||||
};
|
||||
}
|
||||
|
||||
util.inherits(View, events.EventEmitter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue