4 ms·
I wish I knew about terminal.js before I started working on an implementation of a shell in the browser: http://tsh.ashafa.com/ http://tsh.ashafa.com/ I needed
by twism 17y ago
I wish I knew about terminal.js before I started working on an implementation of a shell in the browser: http://tsh.ashafa.com/ http://tsh.ashafa.com/
I needed more than the traditional input text type or textarea for input I saw all the time while I was researching a solution.
- kordless 17y agoI've been working on something like this as well, and your approach is closer to what I've done than terminal.js. To me, it makes more sense to pass the commands back to the server for parsing and handling - let JS just be the display handler. Oh, I like the tab completion stuff too. Your source code indicates it may have an Open Source license on it. Do you have the raw source available somewhere? Happy to share what little I have done so far.
- twism 17y agoThanks and yes I will put the entire source on github as soon as I clean it up. The current un-minified javascript can be found here: http://tsh.ashafa.com/static/global.js http://tsh.ashafa.com/static/global.js It was really a quick experimental hack that turned into something worth dedicating a little more time to. Not my best javascript at all.