Console

demo.console1 = util.initConsole('#console1');
demo.console1.print('');
demo.console1.write('');
demo.console1.write(text, 0);
demo.console1.write(text, 5);
demo.console1.clear();
demo.console1.copy();
demo.console1.getText();
demo.console1.getHTML();
demo.console1.toTop();
demo.console1.toBottom();
demo.console1.toLeft();
demo.console1.toRight();
var opt = {
  bufsize: 10,
  width: '500px',
  height: '100px',
  color: '#0f0',
  background: '#000',
  border: '1px dotted #00f',
  fontFamily: 'MS Gothic',
  fontSize: '12px',
  class: 'console2'
};
demo.console2 = util.initConsole('#console2', opt);
demo.console2.clear();
demo.console2.print('');
demo.console2.print('', );
demo.console1.write('');
demo.console2.getText('');
demo.console2.getHTML('');