Added shortcuts for commonly used editors.

Fastidious 2016-08-21 13:10:44 -04:00
parent 4b0a747706
commit 45ba1d9a54

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"```