2013-08-11 09:32:17 -05:00
2013-08-13 09:51:58 -05:00
2013-08-13 09:51:58 -05:00
2013-08-13 09:51:58 -05:00
2013-08-13 09:51:58 -05:00
2013-08-13 09:51:58 -05:00
2013-08-08 09:06:06 -05:00
up
2013-08-08 09:03:31 -05:00
2013-08-13 09:51:58 -05:00
2013-08-08 11:00:11 -05:00

term.js

A full xterm clone written in javascript. Used by tty.js.

Example

Server:

var term = require('term.js');
app.use(term.middleware());
...

Client:

window.addEventListener('load', function() {
  var socket = io.connect();
  socket.on('connect', function() {
    var term = new Terminal({
      cols: 80,
      rows: 24
    });

    term.on('data', function(data) {
      socket.emit('data', data);
    });

    term.on('title', function(title) {
      document.title = title;
    });

    term.open(document.body);

    term.write('\x1b[31mWelcome to term.js!\x1b[m\r\n');

    socket.on('data', function(data) {
      term.write(data);
    });

    socket.on('disconnect', function() {
      term.destroy();
    });
  });
}, false);

License

Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)

S
Description
Mirror of ys-ll/xterm.js (GitHub), kept for paraterm builds
https://xtermjs.org/
Readme MIT
39 MiB
2026-09-20 11:20:47 +00:00
Languages
TypeScript 96.5%
JavaScript 2.6%
Shell 0.6%
CSS 0.2%