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
1
vote
2 answers

How can I create a simple loading animation while a function is running?

I'm trying to create a simple loading animation for an arbitrary function in JQuery Terminal. I know that JavaScript is single threaded and synchronous, but are there any workarounds? I've seen the JQuery progress bar animation example, but I'm not…
Alex Hira
  • 41
  • 4
1
vote
1 answer

How do I print out text in subscript/superscript in JQuery Terminal?

I've been trying to find a way to print out text in subscript/superscript within terminal.echo(), but I haven't found one. I know that you can add color and make text bold using the following return "[[gb;teal;black]" + message + "]"; ...but is…
Alex Hira
  • 41
  • 4
1
vote
0 answers

How to check CSS Box model of an element in Cypress?

I plan to create visual testing for my library jQuery Terminal. But I need to know, if it's possible to check the CSS box model (margin, padding, width, and height) of the elements. I need to check if the CSS is working as it should, sice I…
jcubic
  • 61,973
  • 54
  • 229
  • 402
1
vote
1 answer

How to Create More Than One Command in a jQuery Terminal Environment

My Current Project I am trying to make a terminal-style webpage using jQuery Terminal. My Problem I cannot figure out how to add more than one command to the terminal. Here's my code: $('body').terminal({ hello: function(name) { …
AgentLoneStar007
  • 117
  • 3
  • 12
1
vote
0 answers

I am facing some issues with jquery-terminal while trying to build my own web terminal for my portfolio website

e.g. this.echo("Hospital Management System: Designed a full-fledged Hospital Management System Keeping in mind of all the necessary details and problems faced by the people. It was meticulously designed by keeping in mind of all the use cases…
1
vote
0 answers

cursor is not visible on click of left and right arrows in Mozilla

I'm using jquery terminal plugin and I found that when I want to edit the entered command, the cursor is hiding and it's not visible in Mozilla but the text is inserting. Did I missed anything ..?
ST66
  • 31
  • 3
1
vote
1 answer

How to prevent jQuery terminal plugin showing *** when typing a password in a password field?

I want to make the password field in jQuery terminal plugin the same as like the PuTTY password field, which will not show anything when we are entering a password. Currently, it is showing the password as "*****", but I don't want this type of…
ST66
  • 31
  • 3
1
vote
0 answers

Typescript 3.3 no longer get types for my functions from d.ts file

In my library jQuery Terminal I have d.ts file for types and I have test.ts for testing the types, it's just usage of almost every pice of the API, and I'm executing tsc without emitting output files just to test the types. I've updated typescript…
jcubic
  • 61,973
  • 54
  • 229
  • 402
1
vote
1 answer

ASCII art on Codepen don't always show underscores

In my library jQuery Terminal I have issue with CSS on Codpen (ASCII art) when opening in Chrome Underscores is not always visible, Codepen use iframe, I've tested locally and iframe looks ok. Codpen also looks ok in FireFox. If you open Codpen…
jcubic
  • 61,973
  • 54
  • 229
  • 402
1
vote
1 answer

Can't edit textarea in JQuery Terminal

I am loading raw data from a url into JQuery Terminal... var terminal = $('#term').terminal(function(command, term) { term.pause(); //set url... $.get(url, function(result) { term.echo(result, {raw:true}).resume(); …
1
vote
0 answers

Command documentation in jquery-terminal with authentication token

I'm creating a jquery terminal with server side authentication by following the example JSON-RPC with authentication. It works well, but when I type "help" to get information on a particular command, the authentication token is included as the first…
Estelle
  • 11
  • 2
1
vote
1 answer

JQuery Terminal typing animation not displaying special HTML characters or class styles until after animation completes

I'm using code from the JQuery Terminal examples to emulate typed animation in a console window. I can get the animation to work as intended, but during the course of the animation special HTML characters do not display until after the animation…
1
vote
1 answer

How to make custom input text box accessible to screen readers?

I have a plugin jQuery Terminal and I want to make it accessible to screen readers. What should I do to make the input of text accessible? Generated html look like this:
jcubic
  • 61,973
  • 54
  • 229
  • 402
1
vote
1 answer

How to insert and show html code in jQuery Terminal?

I want to use this code but changing the textArea to a divor any other jQuery terminal situable object to show it in term.echo(). I'm doing that by changing html line 1 for
and line 7 of javascript for…
Hache_raw
  • 471
  • 3
  • 10
1
vote
1 answer

My code is not executed the same locally and in codepen or plunker

I have code like this using jQuery Terminal: function show() { for (var i = 0; i < 100; ++i) { this.echo('line ' + i, { flush: false }); } this.flush(); setTimeout(function() { //this.flush(); …
jcubic
  • 61,973
  • 54
  • 229
  • 402