Upgrade to Pro — share decks privately, control downloads, hide ads and more …

xterm.js at FOSSCOMM 2014, Lamia

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

xterm.js at FOSSCOMM 2014, Lamia

Avatar for Paris Kasidiaris

Paris Kasidiaris

May 04, 2014
Tweet

More Decks by Paris Kasidiaris

Other Decks in Programming

Transcript

  1. Who   •  Paris  (@pariskasid,  @parisk  at  GitHub)   • 

    Founder  at  sourcelair.com   •  I  love  Python  and  JavaScript  
  2. Why?   •  Need  for  a  terminal  at  www.sourcelair.com  

    •  Absence  of  a  sufficient  library  for  that  
  3. Mission       A  powerful,  yet  simple  framework  for

     building   terminal-­‐based  applicaXons.  
  4. Fork  of  term.js   •  We  forked  term.js   • 

    Removed  more  than  1000  lines  of  code   •  Offloaded  stuff  out  of  the  core  
  5. Shrinking  the  core   •  Removed  custom  modes   • 

    Hidden  textarea  vs  content-­‐editable   •  Off-­‐loaded  colors  to  CSS  
  6. InteresXng  Features   •  Copy  &  Paste  handling   • 

    WebSocket  a`aching   •  Fit  rows  and  columns  to  parent’s  size  
  7. To-­‐do   •  Remove  all  colors  from  JavaScript   • 

    Implement  character-­‐level  styling   •  OpXmize  content  updaXng  
  8. Browser  CompaXbility   •  Chrome  (Desktop  and  Mobile)   • 

    Firefox  (Desktop)   •  Safari  (Desktop  and  iOS)   •  Opera  (Desktop  and  iOS)   •  IE  10+  (but  sXll  buggy)