12/12/2023 0 Comments Mac iterm color code![]() Replace N with a decimal value in 0 to 255.Įxample in bash that turns the background purple: echo -e "\033]6 1 bg red brightness 255\a"Įcho -e "\033]6 1 bg green brightness 0\a"Įcho -e "\033]6 1 bg blue brightness 255\a" To set the window title and tab color use this escape sequence: ^6 1 bg red brightness N^G Set window title and tab chrome background color After this is sent, all text received is placed in the pasteboard until this code comes in: ^1337 EndCopy^G Where name is one of "rule", "find", "font", or empty to mean the general pasteboard (which is what you normally want). To place text in the pasteboard: ^1337 CopyToClipboard=name^G To change the session's profile on the fly: ^1337 SetProfile=NewProfileName^G This will have no effect if Growl is not running. To post a Growl notification: ^9 Message content goes here^G To inform iTerm2 of the current directory to help semantic history: ^1337 CurrentDir=/the/current/directory^G To erase the scrollback history: ^1337 ClearScrollback^G To bring iTerm2 to the foreground: ^1337 StealFocus^G The following escape code has the same effect as that command: ^1337 SetMark^G The "Set Mark" (cmd-shift-M) command allows you to record a location and then jump back to it later (with cmd-shift-J). vimrc to change cursor shape in insert mode: let &t_SI = "\]1337 CursorShape=1\x7" Set cursor shape ^1337 CursorShape=N^GĪdd this to your. The OSC command 50 used to be used but it conflicts with xterm, so it is now 1337. Proceed with caution.Ī quick comment on notation: in this document, ^[ means "Escape" (hex code 0x1b) and ^G means "bel" (hex code 0x07). These may not work properly in tmux or screen, and may have unknown effects on other terminal emulators. ITerm2 supports several non-standard escape codes. WARNING: This document is for an older version of iTerm2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |