Ticker

6/recent/ticker-posts

Termux Shortcuts keys | how to exter keys on termux

Termux Shortcuts keys


Shortcuts keys 

When we install Termux on mobile, there is some keys at the bottom of it which is this,  ESCTABCTRLALT-DOWN and UP.

Use of keys like ALTCTRLESC is necessary for working with a CLI terminal.  For that purpose Termux uses the Volume down button to emulate the CTRL key. 

For example, pressing VOLUME DOWN+L on a

touch 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.

  1. CTRL+A - Move cursor to the beginning of line
  2. CTRL+C - Abort (send SIGINT to) current process
  3. CTRL+D - Logout of a terminal session
  4. CTRL+E - Move cursor to the end of line
  5. CTRL+K - Delete from cursor to the end of line
  6. CTRL+L - Clear the terminal
  7. CTRL+Z - Suspend (send SIGTSTP to) current process
  8. CTRL+ALT+C - Open new session (only work in Hacker's Keyboard)

The Volume up key also serves as a special key to produce certain input:

  1. VOLUME UP+E - Escape key
  2. VOLUME UP+T - Tab key
  3. VOLUME UP+1 - F1 (and Volume Up+2 - F2, etc)
  4. VOLUME UP+0 - F10
  5. VOLUME UP+B - Alt+B, back a word when using readline
  6. VOLUME UP+F - Alt+F, forward a word when using readline
  7. VOLUME UP+X - Alt+X
  8. VOLUME UP+W - Up arrow key
  9. VOLUME UP+A - Left arrow key
  10. VOLUME UP+S - Down arrow key
  11. VOLUME UP+D - Right arrow key
  12. VOLUME UP+L -  I the pipe character
  13. VOLUME UP+H - ~ the tilde character
  14. VOLUME UP+U - _underscore
  15. VOLUME UP+P - Page Up
  16. VOLUME UP+N - Page Down
  17. VOLUME UP+V - Show the volume control
  18. VOLUME UP+Q - Show extra keys view
  19. VOLUME 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)



how to exter keys on termux




You can also press VOLUME UP+Q or VOLUME UP+K.

Open the termux.properties file: Command

$ nano ~/.termux/termux.properties



Now we will start by adding two rows of some really useful keys

extra-keys = [['ESC','/','-','HOME','UP','END','PGUP'],['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN']]

extra-keys is the key and the value is a list of lists with the extra keys


The extra-keys definition itself can also be spread over multiple lines, if desired, by "backslash-escaping" the line feed at the end of each line, thus:

extra-keys = [ \ ['ESC','/','-','HOME','UP','END','PGUP'], \ ['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN'] \


It should look something like this:

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(or VOLUME 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!


Termux Shortcuts keys


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.

Post a Comment

0 Comments