code: function (data) {
      //console.log(data);
  	data = data.toString();
  	
      var para = data.replace('\n', ' ').split(' ');
      var command = para[0];
  	var raw_para = data.replace(command, '');
  	
  	// remove first element as command
  	para.splice(0, 1);
  	
      // check if the command is registered
      if (l_handlers.hasOwnProperty(command)) {
          // prevent crashing from executing command
          if (UTIL.safeCall(l_handlers[command].handler, para, raw_para) === false) {
              console.log('  usage: ' + command + ' ' + l_handlers[command].usage);
              return;
          }
      }
  	else
  		console.log("type 'help' for a list of commands");
  }
docs: ----------------------------------------- handles keyboard event (including Ctrl-C)