reorganize
This commit is contained in:
parent
dbacb6f8ed
commit
1d37b2b6e2
|
@ -2638,4 +2638,10 @@ exports = Program;
|
|||
exports.Program = Program;
|
||||
exports.Tput = Tput;
|
||||
|
||||
['Screen', 'Box', 'Text', 'List'].forEach(function(key) {
|
||||
exports.__defineGetter__(key, function() {
|
||||
return (exports._widget || (exports._widget = require('./widget')))[key];
|
||||
});
|
||||
});
|
||||
|
||||
module.exports = exports;
|
||||
|
|
|
@ -2,12 +2,6 @@ var blessed = require('blessed')
|
|||
, program = blessed()
|
||||
, screen;
|
||||
|
||||
var high = require('blessed/lib/high');
|
||||
|
||||
Object.keys(high).forEach(function(key) {
|
||||
blessed[key] = high[key];
|
||||
});
|
||||
|
||||
screen = new blessed.Screen({
|
||||
program: program
|
||||
});
|
Loading…
Reference in New Issue