mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-07-05 21:24:32 +02:00
Added shortcuts for commonly used editors.
parent
4b0a747706
commit
45ba1d9a54
14
FAQ.md
14
FAQ.md
@ -118,3 +118,17 @@ $ printf "\033[91mHello\033[0m world.\n" > motd.txt
|
||||
```
|
||||
|
||||
Will print "Hello" in red, then "world." in the default color. [More about escape codes here](http://wiki.bash-hackers.org/scripting/terminalcodes).
|
||||
|
||||
Shortcuts to insert an Esc code, for commonly used editors (from [LinuxQuestions](http://www.linuxquestions.org/questions/linux-from-scratch-13/add-some-color-and-other-stuff-to-your-lfs-login-4175412484/)):
|
||||
|
||||
If using ```vi```:
|
||||
```CTRL+v then Esc```
|
||||
|
||||
If using ```emacs```:
|
||||
```CTRL+q then Esc```
|
||||
|
||||
If using ```nano```:
|
||||
```Esc then v then Esc```
|
||||
|
||||
Using simply ```bash```:
|
||||
```echo -e "\x1b"```
|
||||
|
Loading…
x
Reference in New Issue
Block a user