App-screenorama
    
    
  
  
  
view release on metacpan or search on metacpan
script/screenorama view on Meta::CPAN
  var style = [];
  console.log('replaceColors("' + [match, x, a, b].join('", "') +  '") == ' + (termColors[b || a] || closing));
  screenorama.replaceColors.span = false;
  if (!a && typeof b == 'undefined') { return closing; } // regular
  if (termColors[b]) style.push('color: ' + termColors[b]);
  else if (termColors[a]) style.push('background-color: ' + termColors[a]);
  if (a == 1) { style.push('font-weight: bold'); }
  else if (a == 4) { style.push('text-decoration: underline'); }
  screenorama.replaceColors.span = true;
  return closing + '<span style="' + style.join(';') + '">';
};
screenorama.send = function(msg, e) {
  if (e) e.preventDefault();
  console.log(msg);
  screenorama.ws.send(msg);
( run in 1.820 second using v1.01-cache-2.11-cpan-c333fce770f )