Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| # annotated by dave eddy (@yousuckatprogramming) | |
| # explained - https://youtu.be/D0sG2fj0G4Y | |
| # borrowed heavily from https://grml.org | |
| # Begin blinking text mode | |
| # I just use bold red here since my terminal has blinking disabled | |
| export LESS_TERMCAP_mb=$'\e[1;31m' | |
| # Begin bold text mode | |
| export LESS_TERMCAP_md=$'\e[1;31m' |
| # INSTALL | |
| # cp tmuxconf ~/.tmux.conf | |
| # | |
| # Set prefix key to c-a instead of default c-b | |
| # Tmux Overried Keybinding on Alacritty | |
| # Vim Workflow Goodness | |
| unbind C-b | |
| set -g prefix C-a | |
| bind C-a send-prefix |
| #!/usr/bin/env ruby | |
| # colorization without needing a gem | |
| class String | |
| def colorize(color_code) | |
| "\e[#{color_code}m#{self}\e[0m" | |
| end | |
| def red | |
| colorize(31) |