sketchbook
|
Functions | |
function | EventEmitter () |
function | Stream () |
inherits (Stream, EventEmitter) | |
function | Terminal (options) |
each (keys(Terminal.defaults), function(key){Terminal[key]=Terminal.defaults[key];Terminal.options[key]=Terminal.defaults[key];}) | |
each | ( | keys(Terminal.defaults) | , |
function(key){Terminal[key]=Terminal.defaults[key];Terminal.options[key]=Terminal.defaults[key];} | |||
) |
function EventEmitter | ( | ) |
EventEmitter
inherits | ( | Stream | , |
EventEmitter | |||
) |
function Stream | ( | ) |
Stream
function Terminal | ( | options | ) |
Terminal
Terminal _colors = Terminal.colors.slice() |
Terminal prototype _cursorBlink |
EventEmitter prototype addListener |
Terminal bindCopy |
Copy Selection w/ Ctrl-C (Select Mode)
Terminal bindKeys |
Global Events for key handling
Terminal prototype bindMouse |
Terminal bindPaste |
Bind to paste event
Terminal prototype blur |
var charset = 4 |
Terminal prototype close |
Destroy Terminal
Terminal colors |
var csi = 2 |
var dcs = 5 |
Terminal defaults |
Options
var document = this.document |
EventEmitter prototype emit |
var escaped = 1 |
Terminal prototype fixMobile |
Fix Mobile
Terminal prototype focus = null |
Focused Terminal
var ignore = 6 |
Terminal prototype initGlobal |
Initialize global behavior
Terminal insertStyle |
Insert a default style
EventEmitter prototype listeners |
var normal = 0 |
States
EventEmitter prototype off = EventEmitter.prototype.removeListener |
EventEmitter prototype on = EventEmitter.prototype.addListener |
EventEmitter prototype once |
Terminal prototype open |
Open Terminal
Terminal options = {} |
var osc = 3 |
Stream prototype pipe |
Terminal prototype refresh |
Rendering Engine
Terminal prototype refreshBlink |
EventEmitter prototype removeAllListeners |
EventEmitter prototype removeListener |
Terminal prototype scroll |
Terminal prototype scrollDisp |
Terminal prototype setRawMode |
Terminal prototype showCursor |
Terminal prototype startBlink |
function use strict |
term.js - an xterm emulator Copyright (c) 2012-2013, Christopher Jeffrey (MIT License) https://github.com/chjj/term.js
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Originally forked from (with the author's permission): Fabrice Bellard's javascript vt100 for jslinux: http://bellard.org/jslinux/ Copyright (c) 2011 Fabrice Bellard The original design remains. The terminal itself has been extended to include xterm CSI codes, among other features. Terminal Emulation References: http://vt100.net/ http://invisible-island.net/xterm/ctlseqs/ctlseqs.txt http://invisible-island.net/xterm/ctlseqs/ctlseqs.html http://invisible-island.net/vttest/ http://www.inwap.com/pdp10/ansicode.txt http://linux.die.net/man/4/console_codes http://linux.die.net/man/7/urxvt
Terminal tangoColors |
Colors
var UDK = { type: 'udk' } |
Terminal vcolors |
var window = this |
Shared
Terminal xtermColors |