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

Bug in bookmarklet on web page that have HTML 3.2 doctype

I have bookmarklet that create REPL with Scheme language using my Scheme based lisp in JavaScript and jQuery Terminal. The bookmarklet is not important it just create terminal the link to the bookmarklet is on…
jcubic
  • 61,973
  • 54
  • 229
  • 402
0
votes
1 answer

How to Make a Log Retrieval System with jQuery Terminal

My Current Project I'm trying to make a terminal with jsQuery that has a log retrieval function. My Problem I don't know how to Make the function use an argument instead of writing each command, one by one. Here's my code: RETRIEVE 1: function()…
AgentLoneStar007
  • 117
  • 3
  • 12
0
votes
1 answer

Changing greeting based on screensize

I was wondering how I can change my greeting based on the screensize. Currently it doesn't look nice on smaller screens. I'm not adept at jQuery/JS so I used an if statement to check the width and change the greeting based on that. The problem with…
Rover Indigo
  • 65
  • 1
  • 5
0
votes
1 answer

JQuery Terminal: How to echo without line break

Is it possible to echo without causing a line break? For example, say I wanted to have three dots appear one second after each other: this.echo("."); await sleep(1000); this.echo("."); await sleep(1000); this.echo("."); Currently that appears…
sg-
  • 2,196
  • 1
  • 15
  • 16
0
votes
0 answers

How to change jQuery terminal --char-width

I am using jQuery Terminal 2.4.1. In Chrome the Terminal allows the user to type characters only half of terminal width and it wraps. Firefox it works fine. The only difference I am seeing is --char-width is 7 in FF and 12.7344 in Chrome. Is it…
0
votes
0 answers

Jquery terminal cursor is hidden in FF upon pressing left arrow

I am using jquery 2.4.1 and adding a terminal window. In firefox I am facing an issue , the cursor is disappearing when I navigate using left arrow. It re-appears if I press enter. Other browsers it works fine. Saw there was a bug (fix hidden cursor…
0
votes
0 answers

Error --> "Can't logout() while you are in login"

While using jquery terminal, sometimes if without logging in if I try to call logout() it is throwing me an error like "U can't logout while you are in login". Any idea about this..?
ST66
  • 31
  • 3
0
votes
1 answer

Load raw link contents into terminal

I'm using the raw property to get formatted data from urls into the terminal, like this $(function() { var save_state = []; var terminal = $('#term').terminal(function(command, term) { term.pause(); url = ...; $.get(url,…
0
votes
1 answer

Reversing the flow of JQuery-Terminal

Is it possible to have new command results push previous command results down? This is kind of opposite from how JQuery works out of the box with new commands being entered below the entire command history of the session.
0
votes
1 answer

What security implication to use anyLinks: true with jQuery-terminal?

I can't use anymore relative link in jquery-terminal because all links must have either a ftp or http(s) protocol. I don't quite understand the warning https://terminal.jcubic.pl/api_reference.php#security What could happen if I use anyLinks: true…
solsTiCe
  • 379
  • 5
  • 15
0
votes
1 answer

Jquery Terminal register & login

I have question, i want user register then login but here it's error anyone can help me ? i saw the documentation . here is link of the documentation jquery termi[jquery terminal]1nal here is my script: if (command == 'register') { …
0
votes
1 answer

Regular expression containing an escape sequence in JavaScript for jquery terminal not working

I am trying to execute special character functionality in jQuery terminal. I was able to execute backspace functionality successfully, but I am facing a problem while executing escape functionality. Here is the code I tried to execute. Regex…
dom cobb
  • 25
  • 1
  • 5
0
votes
1 answer

Can this npm package be imported?

Hi I am trying to import a npm package called "jquery.terminal" into my project. I am using browserify through the command line to convert the require("jquery.terminal"); statement into readable code by the interpreter. Here is my current…
TheHoop
  • 365
  • 1
  • 3
  • 8
0
votes
1 answer

Using the jquery-terminal emulator widget without jquery

Is there a way to use this terminal widget without jquery. I mostly use vanilla js on my site, and I want to include this terminal. Is it possible to use without jquery? Is there a good alternative? If not, what is the least intrusive way to use…
JackDaniels
  • 985
  • 9
  • 26
0
votes
1 answer

Cross Browser detection of click vs mouse drag in JavaScript

In jQuery Terminal I have code that bind mouse down/up/move to detect if user using click but not drag. The code look like this: (function() { var count = 0; var isDragging = false; var…
jcubic
  • 61,973
  • 54
  • 229
  • 402