Questions tagged [jquery-terminal]

JQuery Terminal Emulator is a plugin for creating command line interpreters in your applications.

JQuery Terminal Emulator is a plugin for creating command line interpreters in your applications. It can automatically call JSON-RPC service when user type commands or you can provide an object with methods, each method will be invoke on user command. Object can have nested objects which will create nested interpreter. You can also use a function in which you can parse user command by your own. It′s ideal if you want to provide additional functionality for power users. It can also be used as debugging tool.

  • You can create interpreter for your JSON-RPC service with one line of code.
  • Support for authentication (you can provide function when user enter login and password or if you use JSON-RPC it can automatically call login function on the server and pass token to all functions)
  • Stack of interpreters - you can create commands that trigger additional interpreters (eg. you can use couple of JSON-RPC service and run them when user type command)
  • Command Tree - you can use nested objects each command will invoke a function if the value is an object it will create new interpreter and use function from that object as commands. You can use as much nested commands as you like. if the value is a string it will create JSON-RPC service.
  • Tab completion with TAB key.
  • Support for command line history (it uses Local Storage if possible or cookies)
  • Include keyboard shortcut from bash like CTRL+A, CTRL+D, CTRL+E etc.
  • Multiply terminals on one page (every terminal can have different command, it′s own authentication function and it′s own command history) - you can switch between them with CTRL+TAB
  • It catch all exceptions and display error messages in terminal (you can see errors in your javascript and php code in terminal if they are in interpreter function)
  • Support for basic text formatting (color, background, underline, bold, italic) inside echo function
  • You can create and overwrite existing keyboard shortcuts

https://terminal.jcubic.pl/

120 questions
0
votes
1 answer

Jquery-terminal Input Ctrl+D instead of calling exit method

I'm using jquery-terminal plugin to do terminal emulation in text editor. All it does is send input to the server which inserts the input to the real terminal and returns the result. However When using Ctrl+D in jquery-terminal it calls…
Krzysztof Wende
  • 3,208
  • 25
  • 38
0
votes
1 answer

Jquery terminal socket.io login

I'm attempting to use jquery terminal with socket.io and I can't figure out how to get login to work correctly. Can someone perhaps help me? var terminal = $('#terminal').terminal(function(command, terminal) { socket.emit('stdin',…
Zander17
  • 1,894
  • 5
  • 23
  • 31
0
votes
2 answers

Can I change the font-size?

I've tried changing the font size using things like: terminal { font-size: 2em; } but that just messes up the jquery terminal display. It isn't clear that it's been built to support this.
Lee Crawford
  • 83
  • 1
  • 4
0
votes
2 answers

jQuery terminal + bootstrap

I'm using a jQuery terminal (http://terminal.jcubic.pl/) with bootstrap on my page. I'm trying to get the terminal to be inside a modal, I got the modal thing to work and I press two buttons to open up the modal.. But whenever I load the page I…
Tommy
  • 667
  • 1
  • 10
  • 25
0
votes
1 answer

How to initialize terminal manually?

how may i log stuff into the terminal before the user focuses the terminal and presses enter key? I cannot find a way to access the echo method of the terminal outside a call function scope. The "greetings" option is good but it does not help, i am…
TiagoLr
  • 2,782
  • 22
  • 16
0
votes
1 answer

Keypress don't work on some Android devices

I have issue with Android in jQuery Terminal, I've almost fix it, it work on devices I've tested. Demo. But it seems that keypress event don't fire at all (It should echo keypress) on some devices. On mobile I have code that keep focus on textarea…
jcubic
  • 61,973
  • 54
  • 229
  • 402
0
votes
1 answer

How to create a persistant shell command session in Perl / CGI for a web app?

I'm using a front end terminal simulator ( http://terminal.jcubic.pl/ ). I'm running Perl on the backend where I pipe the commands to and from. It's easy to execute one command, get the return code and display it for the user. However, when the next…
kidalex
  • 1,437
  • 2
  • 12
  • 14
0
votes
2 answers

Web terminal emulator - how to program the backend?

I'm using the JQuery Terminal to emulate a CLI terminal on a web page. I can easily pipe the commands back and forth between the front end and the backend ( where I'm running Perl CGI script ). However, I'm wondering how can I pipe those commands…
kidalex
  • 1,437
  • 2
  • 12
  • 14
-1
votes
1 answer

JQuery Terminal how to display document.cookie

I was hoping to display the cookie data of the user in the terminal, however I have not been able to find any implementations apart from within: https://codepen.io/TheRealAlan/pen/qNOZPo where: hack: (who) => if who == "me" …
-1
votes
3 answers

Jquery Terminal In MVC Doesnt Work For Me

Just implemented the http://terminal.jcubic.pl/#demo on my project in cloud9. It works like a charm and does everything its supposed to. Project = https://ide.c9.io/wigge/andreas-cv Website = andreas-cv-wigge.c9users.io/kol.html Now to the…
Wigge
  • 47
  • 9
-1
votes
1 answer

jQuery cubic terminal, to print result lines on console with html formats

i want somehow in echo function to display html contents in terminal just simple hello to be bold in following example $("#tm").terminal(function (command, term) { term.echo('Hello '+command); } I really…
-2
votes
1 answer

How to add syntax highlighter in Jquery terminal?

I am creating a SQL shell using jQuery Terminal. I want to add sql syntax highlighter so that when ever user types a query, SQL keywords get highlighted. There are many jQuery plugins for syntax highlighting but I'm unbale to plugin them in…
SaurabhR
  • 129
  • 3
  • 10
-2
votes
1 answer

How to change Jquery terminal cursor shape? I want it to be '|' not a block

How to change Jquery Terminal cursor shape ? I have tried messing with the CSS described here http://terminal.jcubic.pl/css/jquery.terminal.css But I could only change the color not the shape!
Zeyad Obaia
  • 686
  • 1
  • 6
  • 21
-3
votes
1 answer

Get PHP Data using jQuery Terminal

I was looking into the jQuery terminal emulator plugin: https://terminal.jcubic.pl/ but could not find what I was looking for amongst the documentation and actually found it a bit too advanced for me to understand so I am here asking how would I use…
Dan Alexander
  • 2,004
  • 6
  • 24
  • 34
-8
votes
1 answer

How can we make jquery terminal screen adjustable?

I am using jquery terminal to run commands in my project, in that I want to make its screen adjustable, I am unable to do that, can anybody help me?
1 2 3 4 5 6 7
8