Coder Social home page Coder Social logo

thebureaugroup / language-ansi-styles Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lloiser/language-ansi-styles

0.0 1.0 0.0 110 KB

:art: atom grammar for ANSI SGR styles

Home Page: https://atom.io/packages/language-ansi-styles

License: MIT License

JavaScript 84.90% CSS 15.10%

language-ansi-styles's Introduction

Converts ANSI escape sequences into formatted text like in your terminal/shell.

Demo

Even basic images are possible:

Smiley

Options

  • Hide escape sequences: hides all escape sequences and only keep the bare text with styles and color applied to it.
    NOTE: Hiding characters in atom causes the editor to behave weirdly. The selection and cursor position is totally screwed and makes it pretty hard navigate within or select any text.

Caveats

  • the escape code for inverse 7 is currently not supported

  • escape codes 38;2;r;g;b and 48;2;r;g;b are not supported

With these escape codes you can specify any rgb color (each color ranging from 0-255). Due to the nature of a grammar in atom it is not possible to create styles on demand as they occur. I could (in theory) create >16 million styles to capture every possible rgb color, but I doubt atom feels well afterwards...

  • atom wraps after 500 characters, period.

atom v1.15.0 introduced a hard limit after how many characters a line automatically wraps to a line. This is actually not a big deal for a typical user. But keep it in mind before opening an issue.

  • No themes at the moment

There is currently no possibility to define/select themes. For now you can override the colors in your own atom stylesheet.

language-ansi-styles's People

Contributors

lloiser avatar azachar avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.