Shortcuts keys
When we install Termux on mobile, there is some keys at the bottom of it which is this, ESC
, TAB
, CTRL
, ALT
, -
, DOWN
and UP
.
Use of keys like ALT
, CTRL
, ESC
is necessary for working with a CLI terminal. For that purpose Termux uses the Volume down button to emulate the CTRL
key.
VOLUME DOWN+L
on atouch keyboard sends the same input as pressing Ctrl+L on a hardware keyboard.
--------------------------------------------------------------
Keys
First let's see what happens if you press a key with CTRL, which commands are as follows.
CTRL+A
- Move cursor to the beginning of lineCTRL+C
- Abort (send SIGINT to) current processCTRL+D
- Logout of a terminal sessionCTRL+E
- Move cursor to the end of lineCTRL+K
- Delete from cursor to the end of lineCTRL+L
- Clear the terminalCTRL+Z
- Suspend (send SIGTSTP to) current processCTRL+ALT+C
- Open new session (only work in Hacker's Keyboard)
VOLUME UP+E
- Escape keyVOLUME UP+T
- Tab keyVOLUME UP+1
- F1 (and Volume Up+2 - F2, etc)VOLUME UP+0
- F10VOLUME UP+B
- Alt+B, back a word when using readlineVOLUME UP+F
- Alt+F, forward a word when using readlineVOLUME UP+X
- Alt+XVOLUME UP+W
- Up arrow keyVOLUME UP+A
- Left arrow keyVOLUME UP+S
- Down arrow keyVOLUME UP+D
- Right arrow keyVOLUME UP+L
- I the pipe characterVOLUME UP+H
- ~ the tilde characterVOLUME UP+U - _
underscoreVOLUME UP+P
- Page UpVOLUME UP+N
- Page DownVOLUME UP+V
- Show the volume controlVOLUME UP+Q
- Show extra keys viewVOLUME UP+K
- Another variant to toggle extra keys view
-----------------------------------------------------------------------------------
Adding extra keys
Termux also has an extra keys view which allows you to extend your current keyboard. To enable the extra keys view you have to long tap on the keyboard button in the left drawer menu. (Swipe from left → right to open the drawer)
VOLUME UP+Q
or VOLUME UP+K
.termux.properties
file: Commandextra-keys
is the key and the value is a list of lists with the extra keys
Each key "entry" can be either a string (such as '|'
, '/'
or '='
) or one of the values listed below. These values are defined in ExtraKeysView.java, and the list of values (not including possible synonyms) is:
- CTRL
- ALT
- FN
- ESC
- TAB
- HOME
- END
- PGUP
- PGDN
- INS
- DEL
- UP
- LEFT
- RIGHT
- DOWN
- ENTER
-----------------------------------------------------------------------------
Saving the properties
Now you must save the file. To do so, you need to:
- Hit
CTRL+X
(orVOLUME DOWN+X
which is the same thing.) - Press
y
on the keyboard to save changes - Press
ENTER
to save the filename!
-----------------------------------------------------------------------------
Enabling the changes
Termux won't directly load the save changes. You can use any of the following ways to enable these changes:
- Restart the application! (Easiest way)
- Run
source ~/.termux/termux.properties
to load the file
- Run
termux-reload-settings
All 3 of these work the same. If one doesn't for you, then use the other
mkdir
$HOME/.termux/ ;echo
$HOME/.termux/termux.properties; termux-reload-properties;
The keyboard on the bottom should look something like this now! Well Done!
Disclaimer
This article is for educational purposes only. We have written this article to instruct you about such kinds of phishing attacks that are done by attackers. We are not responsible for any misuse of this article or tool.
0 Comments
Please don't enter any spam link in the comment box.