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

jquery terminal submit command without pressing enter

How can i submit a command without pressing the enter button? I need to make the terminal recognize the speech (that part is already done) and visualize it like a command, than virtually press enter to get an ajax response, is it possible? thanks
1
vote
1 answer

jquery terminal to connect to remote host

I am new to Jquery terminal. Can i use this to connect to remote unix/linux host though web browser? I don't find examples on this do you have any examples? I am also interested even if there something in angular.
Kiran
  • 839
  • 3
  • 15
  • 45
1
vote
1 answer

Display Text File

I was wondering how I would display the contents of a textfile in the terminal output because I have no idea how to go about it. I want it to work like "more [filename]" The files would be in the same directory as the html script. Here is my current…
AIAU Dev
  • 13
  • 4
1
vote
1 answer

Accessing echo globally (Jquery Terminal)

I have jQuery.terminal embedded on my page and I am able to send commands by typing into it. I have numerous console.log and console.dir commands inside the script I am working on, I would like the terminal to also output those but it doesn't. I was…
Ben Muircroft
  • 2,936
  • 8
  • 39
  • 66
1
vote
1 answer

How to prevent jquery terminal from replacing string

I'm using jquery terminal (http://terminal.jcubic.pl/) to emulate a console in JavaScript. When I type ¶= (e.g. as part of a URL) in the prompt, it gets automatically replaced by ¶=. This also happens if I call echo from a function. How can I…
Parnswir
  • 131
  • 1
  • 11
1
vote
1 answer

jquery terminal custom tab completion

Is it possible to take control of the entire tab-completion feature in JQuery.Terminal? I want to manage the autocompletion that's displayed. For instance, I want to support templates/regex so that I can do things like "visualize campaign…
Nick
  • 4,002
  • 4
  • 30
  • 41
1
vote
1 answer

Disable keyboard shortcuts (was: Leave focus from keyboard)

Is there a way to leave the terminal from the keyboard? In an html page, I'm used to CTRL+L to type an URL, but the only result is a clearing of the console. I'd like to be able to CTRL+L directly, but that would be ok with a combination of keys to…
Gra
  • 1,542
  • 14
  • 28
1
vote
1 answer

How to solve issue with OSX dead keys with jQuery?

Someone report this issue on github: dead keys on MacOS, In my code I use keypress event to insert characters (and keydown for shortcuts) using: $(document.documentElement || window).bind('keypress.cmd', function(e) { ... …
jcubic
  • 61,973
  • 54
  • 229
  • 402
1
vote
1 answer

Enable/Disable Android virtual keyboard with dummy textarea

I want to have virtual keyboard for jquery terminal, here is my test code: http://terminal.jcubic.pl/android.html the plugin code is here: http://terminal.jcubic.pl/js/jquery.terminal-src.js (uncommitted) For a moment it was working but it stopped,…
jcubic
  • 61,973
  • 54
  • 229
  • 402
1
vote
1 answer

Force keyboard on mobile devices

How can I get the keyboard to be shown on mobile devices? I already tried a few tricks that did not work, and I'm looking for a proper way to do it.
vfioox
  • 730
  • 1
  • 8
  • 22
1
vote
1 answer

Jquery Terminal Tab Completion

Does anyone have a code snippet showing how to get Jquery Terminal tab completion working? http://terminal.jcubic.pl/ http://terminal.jcubic.pl/api_reference.php I'm getting the function call OK, what's confusing me is how to return the set of…
Kong
  • 8,792
  • 15
  • 68
  • 98
1
vote
1 answer

Sending command output from JSF managedBean to jQuery Terminal

I've integrated jQuery Terminal Emulator in a JSF application with the aim of processing commands in a ManagedBean and not in jQuery. I've sucessfully sent commands to the bean which then sets the result in a callback param, but I can't figure out…
Zim
  • 1,457
  • 1
  • 10
  • 21
1
vote
1 answer

jQuery-Terminal error when run on .HTA instead of .HTML. I can fix it in an ugly way

jQuery-Terminal is a very good plug in to have a text mode terminal interface on web page. But it pops up an error : " Invalid operation to 'in': Object expected" when run on .HTA instead of .HTML. Don't worry, I have fixed it in an ugly way.…
H.C.Chen
  • 412
  • 4
  • 14
1
vote
1 answer

Using JQuery Terminal how do I setup an authentication routine that uses a javascript (not php) function?

I'm working on a project where I use jQuery Terminal for a command line interface to functions. I've been trying to use it's built in authentication capability, but want it to call a JavaScript function to obtain authentication and not calling…
Derek
  • 16,181
  • 3
  • 27
  • 36
1
vote
2 answers

JQuery Terminal term.echo from another function?

I am trying to use: http://terminal.jcubic.pl/ I want to be able to call term.echo from another function to be able to place data inside the terminal, but I can not reference it. Heres the code below: jQuery(document).ready(function($) { var id…