Fork JQuery Terminal Emulator on GitHub


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 debuging tool.



This is simple demo using javascript interpreter. (If cursor is not blinking - click on terminal to activate it) You can type any javascript expression, there are two debug function dir (like in python).

You can use JQuery ‘$’ function to manipulate the page. You also have access to this terminal in ‘term’ variable. Try ‘dir(term)’ or ‘term.signature()’.

Javascript code:

jQuery(function($, undefined) {
    $('#term_demo').terminal(function(command) {
        if (command !== '') {
            try {
                var result = window.eval(command);
                if (result !== undefined) {
                    this.echo(new String(result));
            } catch(e) {
                this.error(new String(e));
        } else {
    }, {
        greetings: 'Javascript Interpreter',
        name: 'js_demo',
        height: 200,
        prompt: 'js> '


Complete source with examples from github

Or just the files:


You can dowload files locally or use:


bower install jquery.terminal


npm install --save jquery.terminal

then you can include the scripts in your html

<script src=""></script>
<script src="js/jquery.terminal-1.11.4.min.js"></script>
<-- with modern browsers jquery mousewheel is not needed actually and scroll will still work -->
<script src="js/jquery.mousewheel-min.js"></script>
<link href="css/jquery.terminal-1.11.4.min.css" rel="stylesheet"/>

You can also grab the files using CDN:

<script src=""></script>
<link href="" rel="stylesheet"/>


<script src=""></script>
<link href="" rel="stylesheet"/>

And if you want:

<script src=""></script>
<script src=""></script>

If you want always the lastest version, you can grab the files from github using

<script src=""></script>
<link href="" rel="stylesheet"/>


JQuery Terminal Emulator plugin is released under MIT license.

It contains:


Use terminal to leave a comment. Click to active. If you have a question you can create an issue on github, ask on stackoverflow (you can use jquery-terminal tag). You can also send email with SO question or jump to the chat.

If you have feature request you can also add GitHub issue.

If you've found an issue with website you can add issue to jquery.terminal-www repo.