Skip to content

(MIRROR) ANSI escape code handling for CodeMirror 6

License

Notifications You must be signed in to change notification settings

cookshack/codemirror-ansi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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