1

There is a good app "Termux" which can provide a powerful shell environment without gaining root permission. However, the touch-screen keyboard doesn't include the "Control" and "Alt" buttons. But some interactive programs (for example, nano, emacs) require these buttons.

Is there any way to add this button or use some other way to replace this button?

4 Answers 4

3

You will want to use Hackers Keyboard (available on Play Store as well as on F-Droid) for that, which was explicitly written for such purpose:

HackersKeyboard
Hacker's Keyboard (source: Google Play; click image for larger variant)

That would be the most convenient approach – though the app hasn't been updated lately. But if you don't want that, just take a look at the corresponding Termux help page (or the matching Termux Wiki page): Termux utilizes the volume keys for "special combos". You can also have the most common keys shown on the screen to be "tap ready":

Keys

The docu writes: To enable the extra keys view you have to long tap on the keyboard button in the left drawer menu. You can also press Volume Up+Q.

Or, as Death Mask Salesman stated in a now deleted comment: "Volume Down equals Control, while Volume Up is the same as Alt."

3
  • @Izzy I'm afraid I don't have a means to contact the dev, though.
    – Grimoire
    Commented May 21, 2018 at 15:58
  • Why not? But, as pointed out, my blindness, so no need. So I will now integrate the facts from our comments, and then clean up, OK? (if-not-OK, X-M-P-P :)
    – Izzy
    Commented May 21, 2018 at 16:23
  • No. Vol-Up is closer to Fn than Alt.
    – iBug
    Commented May 21, 2018 at 16:30
1

When you slide on the left-hand side of the screen, you get two options:

  1. Keyboard
  2. New session

Click and hold on the keyboard and all the essential keys will appear on your keyboard. That's all you have to do.

1
  • Not sure why you were downvoted. This option gives access to all the needs keys on the standard keyboard. Commented Dec 26, 2018 at 16:25
0

Press VOLUME UP+Q to enable and VOLUME UP+K to disable extra keys in termux.

To edit extra keys and shortcuts in termux

nano ~/.termux/termux.properties

and add save

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

You can include shortcuts you like by changing termux.properties.

Reference link

0
-1

You can use Volume Down + C to get the same job.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .