ANSI Lookup Tables ================== - [[Terminal codes (ANSIVT100)]] - [[ASCII TABLE - ANSI Escape Sequences VT-100]] - [[ANSIVT100 Terminal Control]] - https://github.com/TooTallNate/ansi.js/blob/master/lib/ansi.js - http://en.wikipedia.org/wiki/ANSI_escape_code - http://www.isthe.com/chongo/tech/comp/ansi_escapes.html - http://perldoc.perl.org/Term/ANSIColor.html - http://bluesock.org/~willg/dev/ansi.html - https://github.com/mintty/mintty/wiki/CtrlSeqs - https://singularitykchen.github.io/blog/2020/08/06/Glean-ANSI-Escape-Codes/ - https://www.ditig.com/256-colors-cheat-sheet - https://stackoverflow.com/questions/4842424/list-of-ansi-color-escape-sequences ## Terminal Colors - https://betterterminal.com/terminal-colors # Standard Documentation Terminfo ======== - https://web.archive.org/web/20070108063430/http://unixhelp.ed.ac.uk/CGI/man-cgi?terminfo Curses ====== - http://stackoverflow.com/questions/4607891/ruby-curses-how-to-get-ctrl-meta-keys-with - http://docs.python.org/2/library/curses.html - http://docs.python.org/2/howto/curses.html # Code ```js var codes = { up: 'A' , down: 'B' , forward: 'C' , back: 'D' , nextLine: 'E' , previousLine: 'F' , horizontalAbsolute: 'G' , eraseData: 'J' , eraseLine: 'K' , scrollUp: 'S' , scrollDown: 'T' , savePosition: 's' , restorePosition: 'u' , queryPosition: '6n' , hide: '?25l' , show: '?25h' } /** * Rendering ANSI codes. */ var styles = { bold: 1 , italic: 3 , underline: 4 , inverse: 7 } /** * The negating ANSI code for the rendering modes. */ var reset = { bold: 22 , italic: 23 , underline: 24 , inverse: 27 } /** * The standard, styleable ANSI colors. */ var colors = { white: 37 , black: 30 , blue: 34 , cyan: 36 , green: 32 , magenta: 35 , red: 31 , yellow: 33 , grey: 90 , brightBlack: 90 , brightRed: 91 , brightGreen: 92 , brightYellow: 93 , brightBlue: 94 , brightMagenta: 95 , brightCyan: 96 , brightWhite: 97 } ```