style(bash): describe common terminal control sequences
This commit is contained in:
parent
51e1d65153
commit
f2311bddc1
1 changed files with 19 additions and 0 deletions
|
@ -201,6 +201,25 @@ alias myip="curl -s https://ifconfig.co"
|
||||||
alias light='_update_colors light'
|
alias light='_update_colors light'
|
||||||
alias dark='_update_colors dark'
|
alias dark='_update_colors dark'
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
# Terminal color management
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
# Useful terminal control sequences:
|
||||||
|
#
|
||||||
|
# Sequence Abbrev Description
|
||||||
|
# ----- ----- -----------------------------
|
||||||
|
# ESC P DCS Device Control String
|
||||||
|
# ESC [ CSI Control Sequence Introducer
|
||||||
|
# ESC \ ST String Terminator
|
||||||
|
# ESC ] OSC Operating System Control
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# More info at:
|
||||||
|
# * https://www.xfree86.org/4.8.0/ctlseqs.html
|
||||||
|
# * https://vt100.net/
|
||||||
|
# * https://iterm2.com/utilities/imgcat
|
||||||
|
|
||||||
_send_osc() {
|
_send_osc() {
|
||||||
local OSC ST
|
local OSC ST
|
||||||
if [ -n "$TMUX" ]; then
|
if [ -n "$TMUX" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue