node-ansiterminal
An offscreen xterm like ANSI terminal library.
Last updated 10 years ago by jerch .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install node-ansiterminal 
SYNC missed versions from official npm registry.

Build Status Coverage Status

An offscreen xterm like ANSI terminal library.

The terminal implements the interface of the node-ansiparser in ECMA5 vanilla javascript.

Quick usage example:

var AnsiTerminal = require('node-ansiterminal').AnsiTerminal;
var AnsiParser = require('node-ansiparser');
var terminal = new AnsiTerminal(80, 25, 500);
var parser = new AnsiParser(terminal);
parser.parse('\x1b[31mHello World!\x1b[0m');
console.log(terminal.toString());

See examples for some output examples or jquery.browserterminal for a jquery based browser frontend.

Documentation

See the API documentation.

TODO:

  • remove box printing chars special handling (goes to frontend)
  • bracketed paste mode
  • tabs, tab stops, tab width, tab output
  • tons of DCS and DEC special codes
  • advanced tests, vttest
  • rework mouse handling
  • more test cases
  • complete doc

Current Tags

  • 0.2.1-beta                                ...           latest (10 years ago)

2 Versions

  • 0.2.1-beta                                ...           10 years ago
  • 0.2.0-beta                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (10)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |