2013-07-24 19:40:05 +00:00
|
|
|
/**
|
2015-05-06 06:58:33 +00:00
|
|
|
* blessed - a high-level terminal interface library for node.js
|
2015-02-01 15:22:39 +00:00
|
|
|
* Copyright (c) 2013-2015, Christopher Jeffrey and contributors (MIT License).
|
2013-07-24 19:40:05 +00:00
|
|
|
* https://github.com/chjj/blessed
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Blessed
|
|
|
|
*/
|
|
|
|
|
|
|
|
function blessed() {
|
2015-05-06 06:58:33 +00:00
|
|
|
return blessed.program.apply(null, arguments);
|
2013-07-24 19:40:05 +00:00
|
|
|
}
|
|
|
|
|
2015-05-06 06:58:33 +00:00
|
|
|
blessed.program = blessed.Program = require('./program');
|
|
|
|
blessed.tput = blessed.Tput = require('./tput');
|
|
|
|
blessed.widget = require('./widget');
|
|
|
|
blessed.colors = require('./colors');
|
|
|
|
blessed.unicode = require('./unicode');
|
|
|
|
blessed.helpers = require('./helpers');
|
2013-07-24 19:40:05 +00:00
|
|
|
|
2015-05-06 06:58:33 +00:00
|
|
|
blessed.helpers.sprintf = blessed.tput.sprintf;
|
|
|
|
blessed.helpers.tryRead = blessed.tput.tryRead;
|
|
|
|
blessed.helpers.merge(blessed, blessed.helpers);
|
2013-07-24 19:40:05 +00:00
|
|
|
|
2015-05-06 06:58:33 +00:00
|
|
|
blessed.helpers.merge(blessed, blessed.widget);
|
2014-04-26 10:57:37 +00:00
|
|
|
|
2013-07-24 19:40:05 +00:00
|
|
|
/**
|
|
|
|
* Expose
|
|
|
|
*/
|
|
|
|
|
|
|
|
module.exports = blessed;
|