Keyboard | |
---|---|
Outcome | Change to make |
Map Caps Lock to Control | System Settings > Keyboard > Keyboard Shortcuts > Modifier Keys > Choose "Control" from the dropdown next to Caps Lock. |
Make function keys act as function keys, not controlling features | System Settings > Keyboard > Keyboard Shortcuts > Function Keys > Use F1, F2, etc. keys as standard function keys |
Terminal | |
Outcome | Change to make |
To make Option = Alt | Terminal > Settings > Profiles > Basic (or whatever your Default is) > Keyboard tab > Use Option as Meta key |
To make Shift + Up Arrow be recognized (which allows for easy highlighting) | 1. Terminal > Settings > Profiles > Basic (or whatever your Default is) > Keyboard tab > Choose + to add an option.
2. Choose Key = Cursor Up, Modifier = Shift, and leave Action = Send Text: 3. Now the tricky part. In the empty text box, type Ctrl+[ (which will write \033 to the text box), then [1;2A as regular keystrokes, resulting in final text of \033[1;2A in the text box. Not that this text box won't let you delete characters or change them without using the "Delete one character" button, so enter carefully. |
To make Shift + Down Arrow be recognized in Terminal (which allows for easy highlighting) | 1. Terminal > Settings > Profiles > Basic (or whatever your Default is) > Keyboard tab > Choose + to add an option.
2. Choose Key = Cursor Down, Modifier = Shift, and leave Action = Send Text: 3. Now the tricky part. In the empty text box, type Ctrl+[ (which will write \033 to the text box), then [1;2B as regular keystrokes, resulting in final text of \033[1;2B in the text box. Not that this text box won't let you delete characters or change them without using the "Delete one character" button, so enter carefully. |
Mouse Scroll wheel no longer spews garbage characters into the Terminal app | Type "reset" command. This is usually the result of dumping binary output into the terminal. |
To make locale work correctly in Terminal | Basic > Profiles > Advanced > Set locale environment variables on startup |
Ensure the computer doesn't completely sleep while running a long-running command line option | Add caffeinate as a prefix to the command-line invocation |