Fork jQuery Terminal Emulator on GitHub


jQuery Terminal Emulator is a plugin for creating command line interpreters in your applications. It can automatically call an JSON-RPC service when the user types commands. Alternatively, you can provide an object with methods; each method will be invoked on the user's command. An object can have nested objects which will create a nested interpreter. You can also use a function in which you can parse user commands on 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 use this library to have web based terminal on any website with little bit of JavaScript.


I want to thanks few services that provided free accounts for this Open Source project:

Here are status of those services on master branch:

And devel branch:



This is a simple demo, using a JavaScript interpreter. (If the cursor is not blinking, click on the terminal to activate it.) You can type any JavaScript expression, there is debug function dir (like in Python).

You can use jQuery's "$" method to manipulate the page. You also have access to this terminal in the "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 few examples from github

Or just the files:


You can download 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-2.8.0.min.js"></script>
<-- With modern browsers, jQuery mousewheel is not actually needed; scrolling will still work -->
<script src="js/jquery.mousewheel-min.js"></script>
<link href="css/jquery.terminal-2.8.0.min.css" rel="stylesheet"/>

You can also grab the files using a CDN (Content Distribution Network):

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


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

And optional but recomended:

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

If you always want the latest version, you can grab the files from unpkg without specifying version number

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


The jQuery Terminal Emulator plugin is released under the MIT license.

It contains:


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

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

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