@cookshack/codemirror-ansi

0.1.2 • Public • Published

@cookshack/codemirror-ansi

ANSI escape code handling for CodeMirror 6.

Currently only affects Select Graphic Rendition sequences (the color escapes):

  1. hides control chars
  2. displays/clears 4 bit fg/bg colors and bold

Screenshots

All colors

npm run prepare

Example

window.view = new EditorView({
  extensions: [ ansi(), ...

Build from source

$ npm i # only needed first time
$ npm run prepare

Readme

Keywords

none

Package Sidebar

Install

npm i @cookshack/codemirror-ansi

Weekly Downloads

4

Version

0.1.2

License

MIT

Unpacked Size

29.2 kB

Total Files

8

Last publish

Collaborators

  • mattmundell