* Lots of work with fonts: Support mappings of various cterm/SyncTERM fonts.

* Load font info from SAUCE
* Better work with defaults & theme values
This commit is contained in:
Bryan Ashby 2015-04-16 22:29:53 -06:00
parent 586f3d60b3
commit 5faa11664b
15 changed files with 233 additions and 39 deletions

View file

@ -5,6 +5,8 @@ var fs = require('fs');
var paths = require('path');
var miscUtil = require('./misc_util.js');
// :TODO: it would be nice to allow for defaults here & .json file only overrides -- e.g. merge the two
module.exports = {
defaultPath : function() {
var base = miscUtil.resolvePath('~/');
@ -15,6 +17,7 @@ module.exports = {
initFromFile : function(path, cb) {
var data = fs.readFileSync(path, 'utf8');
// :TODO: strip comments
this.config = JSON.parse(data);
},
@ -32,7 +35,11 @@ module.exports = {
usernameMax : 22,
passwordMin : 6,
requireActivation : true, // require SysOp activation?
defaultTheme : 'NU-MAYA',
},
defaults : {
theme : 'NU-MAYA',
passwordChar : '*',
},
paths : {