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

Why does this jqueryterminal cmd function not work?

I have this, which I edited from the latest zip of the JQueryTerminal code: JQuery Terminal Emulator Demo
0
votes
0 answers

Whole line formatting in jquery-terminal?

In the SQL Syntax Highligter Example an example of formatters API is shown. However, it appears that the string that is passed to a custom formatter function is not whole user input string, but parts of it before and after the cursor (the function…
ovk
  • 2,318
  • 1
  • 23
  • 30
0
votes
1 answer

Focus the JQuery Terminal from Mousetrap bin

I'm opening a Bootstrap modal with a jquery terminal inside by using a Mousetrap shortkey. Now i want to focus the terminal after opening the modal by shortcut, but it does not work. I tried to focus the id around and also some of the terminal…
phpDev937
  • 3
  • 3
0
votes
1 answer

How to limit commands in jQuery terminal

I've been using wterm in my application fork, but now is guess is very old and discontinued. I've try to migrate to jquery-terminal, but I didn't understand well how configure. With old…
0
votes
0 answers

either resizing terminal or strange top scrolling

Using jquery terminal 1.2.0 & jquery 3.2.1 mostly works but proper scrolling is eluding me in one of two different ways. I am looking at the api reference. The demos look great. I looked but didn't find another similar question among tagged…
Grant Bowman
  • 307
  • 6
  • 16
0
votes
1 answer

Hide terminal prompt while greetings is typed in jquery terminal

I am using Jquery Terminal, and am trying to hide the prompt until greetings is typed. Currently I am using setTimeout to delay greeting but later will stimulate user typing. Using set_prompt() I am able to hide text in prompt but cursor still keeps…
Rishabh Jain
  • 526
  • 1
  • 10
  • 26
0
votes
1 answer

Create JQuery Terminal where prompt is always at the bottom

I've been using JQuery terminal for a project I'm working on. What I'd like is to have the terminal prompt always at the bottom of the terminal, rather than scrolling with whatever output there has been so far. Is this possible?
0
votes
0 answers

Not creating new ajax request

A new get ajax request should be created (even if there is any outstanding ajax request) whenever:- 1) i input any string and press enter (with the help of terminal api). 2) and key-event ajax request when i press ctrl^D ( or C, O,etc). [my…
Vibhor Verma
  • 161
  • 1
  • 4
  • 13
0
votes
0 answers

Avoid prepending home page to URLs?

I'm having some trouble figuring out how to resolve this issue I'm having with URLs. Within one of my commands, I'm trying to link to outside sites by doing the following: this.echo('' + contact[i] +…
philip yoo
  • 2,462
  • 5
  • 22
  • 37
0
votes
1 answer

How to change the default style of quake like terminal to comeout from bottom of page instead of drop down from top?

The Quake like terminal provided at link has this animation of dropping down from top.I am trying to change its behaviour to come-out from bottom of page instead.Is there any simple way to achieve that ?
Nikhil
  • 1,021
  • 12
  • 13
0
votes
1 answer

How do I parse command arguments in jquery terminal?

I notice there is a utility method $.terminal.parse_arguments but I'm not sure if this should be called on the command (which I'm assuming is always just a string?) If I use it like this I get an error 'cannot read property match', which seems to…
mikejw
  • 183
  • 1
  • 2
  • 12
0
votes
1 answer

Enable copy-paste in jquery-terminal?

I'm using jquery-terminal to provide an interactive prompt in javascript. Unfortunately, I cannot paste things into this prompt. How do I paste text into jquery-terminal?
fuzzyTew
  • 3,511
  • 29
  • 24
0
votes
2 answers

jQuery Terminal script will only load upon refresh and onwards

I've tried using the jQuery Terminal plugin, and at first I thought my script was ok. Then I tried uploading it to two free webhosts to test it, and I'm encountering problems where you would need to refresh the page for it to work properly. At least…
Valerie
  • 43
  • 2
0
votes
1 answer

jquery terminal template, I need a persistent DOM element in the top right corner

I've got a question that I don't really know how to google, and my CSS is still woefully inadequate, so I'll ask it here. I am using jquery terminal, and it is a pretty neat little library. However, when I unzipped the file, I could not find any…
Zack
  • 13,454
  • 24
  • 75
  • 113
0
votes
1 answer

Jquery terminal text formatting syntax, what am I doing wrong?

I am using the jquery terminal and it is working great. However, for the life of me, I cannot figure out the correct syntax that will format my string. The example says echo([string|function], [options]) — display string on terminal — (additionally…
Zack
  • 13,454
  • 24
  • 75
  • 113