Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
terminal emulator application like xterm in node and html

1.4.1

latest commit f13b720fd9
James Halliday authored
Failed to load latest commit information.
bin use argv.shell
browser expose the terminal object
static scale down xtshow content to fit on the page
vendor guard against lines taht don't exist
LICENSE readme, license
package.json 1.4.1
readme.markdown use argv.shell

readme.markdown

exterminate

terminal emulator application like xterm

example

Just type exterminate. You will be in a graphical shell just like xterm or gnome-terminal, except running with chrome using --app.

To render html pages and images inline in the terminal use the xtshow command:

exterminate

You can render any html you want on the terminal! Here's some javascript and html that parses the query string and renders it... in comic sans!

var qs = require('querystring');

var params = qs.parse(window.location.search.replace(/^\?/, ''));
var text = document.createTextNode(JSON.stringify(params));
document.body.appendChild(text);
<html>
<head>
<style>
  body {
    font-family: "Comic Sans MS";
    color: rgb(100,255,255);
    font-size: 1.5em;
  }
</style>
</head>
<body>
<script src="bundle.js"></script>
</body>
</html>
$ browserify main.js > bundle.js

comic sans in the terminal

usage

usage:

  exterminate OPTIONS

    Create an exterminate session or server.

    OPTIONS:

      --port=PORT   Listen on 0.0.0.0:PORT and go into server mode.

      --viewer      Broadcast the first connection to all later connections.

      --share       Share a terminal with anybody who connects.

      --share=N     Limit sharing to the first N connections.

      --app=CMD     Command to launch `google-chrome` as or false to not launch.

      --shell=CMD   Command used for the shell by exterminate. Defaults to
                    $SHELL and falls back to `bash`.

  exterminate show FILE

    Render the html, image, or text content at FILE inline in the terminal.

    This command is also available as `xtshow`.

install

First install google chrome ane make sure google-chrome is in your $PATH.

Then with npm do:

npm install -g exterminate

license

MIT

Something went wrong with that request. Please try again.