|
1 | 1 | hero: Adding Extra Keys on the touch keyboard |
2 | 2 |
|
3 | | -## Understanding Keys on Termux and Shortcuts |
4 | | -You might have noticed that the keyboard at the bottom of the screen has some pretty useful keys by default! |
5 | | -These are `ESC`, `TAB`, `CTRL`, `ALT`, `-`, `DOWN` and `UP`. |
6 | | - |
7 | | -But you can always edit these if you want to! |
8 | | - |
9 | | -Use of keys like `ALT`, `CTRL`, `ESC` is necessary for working with a CLI terminal. |
10 | | -Termux touch keyboards do not include one. |
11 | | -For that purpose Termux uses the Volume down button to emulate the `CTRL` key. |
12 | | -For example, pressing `VOLUME DOWN+L` on a touch keyboard sends the same input |
13 | | -as pressing Ctrl+L on a hardware keyboard. |
14 | | - |
15 | | -The result of using `CTRL` in combination with a key depends on which program is used, but for many command line tools the following shortcuts works: |
16 | | - |
17 | | -* `CTRL+A` → Move cursor to the beginning of line |
18 | | -* `CTRL+C` → Abort (send SIGINT to) current process |
19 | | -* `CTRL+D` → Logout of a terminal session |
20 | | -* `CTRL+E` → Move cursor to the end of line |
21 | | -* `CTRL+K` → Delete from cursor to the end of line |
22 | | -* `CTRL+L` → Clear the terminal |
23 | | -* `CTRL+Z` → Suspend (send SIGTSTP to) current process |
24 | | -* `CTRL+ALT+C` → Open new session (only work in Hacker's Keyboard) |
25 | | - |
26 | | -The Volume up key also serves as a special key to produce certain input: |
27 | | - |
28 | | -* `VOLUME UP+E` → Escape key |
29 | | -* `VOLUME UP+T` → Tab key |
30 | | -* `VOLUME UP+1` → F1 (and Volume Up+2 → F2, etc) |
31 | | -* `VOLUME UP+0` → F10 |
32 | | -* `VOLUME UP+B` → Alt+B, back a word when using readline |
33 | | -* `VOLUME UP+F` → Alt+F, forward a word when using readline |
34 | | -* `VOLUME UP+X` → Alt+X |
35 | | -* `VOLUME UP+W` → Up arrow key |
36 | | -* `VOLUME UP+A` → Left arrow key |
37 | | -* `VOLUME UP+S` → Down arrow key |
38 | | -* `VOLUME UP+D` → Right arrow key |
39 | | -* `VOLUME UP+L` → | (the pipe character) |
40 | | -* `VOLUME UP+H` → ~ (the tilde character) |
41 | | -* `VOLUME UP+U` → _ (underscore) |
42 | | -* `VOLUME UP+P` → Page Up |
43 | | -* `VOLUME UP+N` → Page Down |
44 | | -* `VOLUME UP+.` → Ctrl+\ (SIGQUIT) |
45 | | -* `VOLUME UP+V` → Show the volume control |
46 | | -* `VOLUME UP+Q` → Show extra keys view |
47 | | -* `VOLUME UP+K` → Another variant to toggle extra keys view |
48 | | - |
49 | | - |
50 | 3 | ## Adding extra keys |
51 | 4 |
|
52 | 5 | Termux also has an extra keys view which allows you to extend your current keyboard. |
|
0 commit comments