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
2
votes
1 answer

User text in Jquery Terminal

I have question, how can i add value in Jquery Terminal? Something like this: jQuery(function($, undefined) { $('#terminal').terminal(function(command) { if(command == 'test ' + value) { // Value (something a user wrote) alert(value); …
2
votes
0 answers

Jquery Terminal always gets focused upon

Whenever the page loads, the page scrolls down to the jquery terminal directly. I want to disable this feature and haven't been able to do it for quite a while. Any help will be highly appreciated
Reuben_v1
  • 714
  • 2
  • 7
  • 20
2
votes
1 answer

Jquery Terminal always focused

I am using the JCubic Jquery Terminal, works great but the cursor is always focused on the terminal cmd. Any other textfield/textbox on the page does not work because any key press focuses the cursor back on the Terminal.…
FrozenSnow
  • 31
  • 6
2
votes
0 answers

JCubic Terminal not working on desktop

I downloaded the demo of JCubic Terminal to test on my local PC, but when I open then with my browser they simply display nothing. I tried uploading to my nginx VPS but again, it displayed nothing. What do I need to do to get output?
Dimitri_Wayland
  • 35
  • 1
  • 1
  • 4
2
votes
1 answer

Multiple Interpreters with login

I am attempting to get a multi-interpreter set up and working and running into a bit of an issue, specifically utilizing an external login source. First off, the snippet I'm using to setup the terminal. $(document).ready(function() { var term =…
Tsukasa
  • 23
  • 6
2
votes
1 answer

How do I force jquery terminal to remain the same size?

I am using Jquery terminal and it seems pretty cool. I've been looking around for several hours now, and I can't find a way to get the console to remain stationary when text is inputted. Instead, the console increases in size for every line of input…
Zack
  • 13,454
  • 24
  • 75
  • 113
2
votes
3 answers

Echo content on the same line in jQuery Terminal

I've been looking through the documentation for jQuery Terminal but found nothing. Basically, I'm trying to echo the following: Here v0.8.7 should be a link, but when I try to echo the string using .echo(string,{raw:true}) the ASCII art gets…
anon
2
votes
1 answer

How to hook on keypress and grab the current content of the terminal?

I successfully installed the terminal on a test page and want to highlight parentheses that match, something like this: http://profgra.org/lycee/calcul.html So I already have a working solution that I now need to hook to the terminal. My first idea…
Gra
  • 1,542
  • 14
  • 28
2
votes
1 answer

jQuery terminal, Ember, QUnit - Automated testing issue

I'm working on an app that combines Ember with jquery-terminal to help users learn. I apologise for the long question up front! I love to work in a TDD style, but am struggling to get this working. What I want to do is simulate user input into…
muttonlamb
  • 6,341
  • 3
  • 26
  • 35
2
votes
1 answer

How to change JQuery Terminal prompt from another function?

I am using http://terminal.jcubic.pl/ to create a jQuery terminal. I want to change the prompt after user successfully logged in. For an example. I want to change the prompt to root@mac from #: I am bit new to jQuery. Please help. // This is how i…
kakopappa
  • 5,023
  • 5
  • 54
  • 73
2
votes
1 answer

Error handling using JQuery Terminal Plugin and Django with jsonrpc

Just having some fun, and trying to learn both JQuery and Django at the same time. I thought it would be nifty to write a browser based terminal application. Here's the background: My application uses the jsonrpc django-json-rpc…
Mreider
  • 83
  • 1
  • 7
2
votes
1 answer

How to use both Jquery Terminal as Quake like Console and RPC from examples

I'm using the JQuery Terminal here: http://terminal.jcubic.pl/ I am trying to create a console style terminal (Quake-like console) as outlined in example 2 from this page: http://terminal.jcubic.pl/examples.php I also want it to call back to an RPC…
Sugitime
  • 1,818
  • 4
  • 23
  • 44
2
votes
2 answers

How to create a JavaScript interpreter in JavaScript using eval?

It should be simple to create JavaScript intepreter in JavaScript using eval. I got this (using jQuery terminal): term = $('#term_demo').terminal(function(command, term) { if (command !== '') { var result = window.eval("(" + command +…
jcubic
  • 61,973
  • 54
  • 229
  • 402
1
vote
1 answer

Prompt not showing up after a sequence of typing animations in jQuery Terminal

eth_atr_d9: function() { this.echo('Entering... ', { typing: true, delay: 10 }); this.echo('Text1', { typing: true, delay: 30 }); this.echo('Text2', { typing: true, delay: 30 }); On entering this…
1
vote
2 answers

JQuery Terminal - Optional parameters in commands

I want to accept optional parameters when creating a function to handle a command in the JQuery Terminal plug-in. eg. Foo -> returns a list of Foo's Foo 1234 -> returns details of Foo 1234 only Foo Active -> returns a list of Active Foo's However,…
Terry Wray
  • 21
  • 4