0

Is there a way to use this terminal widget without jquery. I mostly use vanilla js on my site, and I want to include this terminal.

  1. Is it possible to use without jquery?
  2. Is there a good alternative?
  3. If not, what is the least intrusive way to use this on an existing page that doesn't use jquery? (without actually using iframe)
JackDaniels
  • 985
  • 9
  • 26

1 Answers1

0

Unfortunately you can't use it without jQuery but there is one different library that can work with vanillaJS, which is terminalJS.

There is also xtermjs but that one is more for apps that emulate real terminal (it supports curses apps like vi or tmux) and in most cases using websockets.

jcubic
  • 61,973
  • 54
  • 229
  • 402
  • Is jquery a hard core dependancy or can it be removed after some work ? – solsTiCe Nov 15 '18 at 10:28
  • @solsTiCe it's very tightly coupled, but it's probably doable to removed it, you will need to replace all DOM manipulation, size calculation and jquery plugins usage with functions calls. Nothing is impossible if you have time. Maybe replacing jQuery with its own small DOM library for start that use jQuery and then create DOM library that use modern browses API. I can think about this. – jcubic Nov 15 '18 at 11:39