Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 620 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 620 Bytes

@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