diff --git a/lib/widget.js b/lib/widget.js index 7e3cd2f..6d1444d 100644 --- a/lib/widget.js +++ b/lib/widget.js @@ -47,3 +47,14 @@ widget.classes.forEach(function(name) { var file = name.toLowerCase(); widget[name] = widget[file] = require('./widgets/' + file); }); + +widget.aliases = { + 'ListBar': 'Listbar', + 'PNG': 'ANSIImage' +}; + +Object.keys(widget.aliases).forEach(function(key) { + var name = widget.aliases[key]; + widget[key] = widget[name]; + widget[key.toLowerCase()] = widget[name]; +});