Git Product home page Git Product logo

ansi-vt100's Introduction

This repository is synced

This is a small repo for storing some information related to ANSI-VT100 control sequences.

I used it in some of my Node.js or Python projects and it was a bit bizzarre to work with inside CMD on Windows, hence I made a tiny knowledge stash, which I will likely expand further. I actually forgot what exactly I was going to do with it. I believe that I created some kind of mini colors library that I could use for printing out colorful debug messages. Makes sense in that aspect I guess...

I might want to give it another try when I have some time the other day.

graph TD;
  a[VT100]-->|Millions of years of human evolution| b[Escape sequences denoted with \ e, \ x1B, \ 033];
  b-->b1[Color static libraries - e.g. C-lang]
  b-->b2[Works perfecty well in Bash, Node.js, possibly Python];
  b-->b3[Super borked in CMD];
Loading

Description of VT100

Official terminals website (those actually used to be old terminals made by DEC, which kind of started this type of coloring sequences etc.)

Animations?

Color combinations

\e[{FORMAT_ATTRIBUTE};{FORGROUND_COLOR};{BACKGROUND_COLOR}m

{TEXT}

\e[{RESET_FORMATE_ATTRIBUTE}m

FORMAT ATTRIBUTE

{ "Default", "0" }, { "Bold", "1" }, { "Dim", "2" }, { "Italics", "3"}, { "Underlined", "4" }, { "Blink", "5" }, { "Reverse", "7" }, { "Hidden", "8" }

FORGROUND COLOR

{ "Default", "39" }, { "Black", "30" }, { "Red", "31" }, { "Green", "32" }, { "Yellow", "33" }, { "Blue", "34" }, { "Magenta", "35" }, { "Cyan", "36" }, { "Light Gray", "37" }, { "Dark Gray", "90" }, { "Light Red", "91" }, { "Light Green", "92" }, { "Light Yellow", "93" }, { "Light Blue", "94" }, { "Light Magenta", "95" }, { "Light Cyan", "96" }, { "White", "97" }

BACKGROUND COLOR

{ "Default", "49" }, { "Black", "40" }, { "Red", "41" }, { "Green", "42" }, { "Yellow", "43" }, { "Blue", "44" }, { "Megenta", "45" }, { "Cyan", "46" }, { "Light Gray", "47" }, { "Dark Gray", "100" }, { "Light Red", "101" }, { "Light Green", "102" }, { "Light Yellow", "103" }, { "Light Blue", "104" }, { "Light Magenta", "105" }, { "Light Cyan", "106" }, { "White", "107" }

RESET FORMAT ATTRIBUTE

{ "All", "0" }, { "Bold", "21" }, { "Dim", "22" }, { "Underlined", "24" }, { "Blink", "25" }, { "Reverse", "27" }, { "Hidden", "28" }

Example of color representations

Discussion on Win32 VT100 support

Example of implementing VT100 support on Windows 10 and higher

Why VT100 support on Windows sucks

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.