‹ Guides

Arrow keys without the keyboard v26.4.2+

Pressing ↑ to bring back the last command used to mean opening the keyboard first. Press and hold an empty part of the screen instead, and steer.

Available in Term v26.4.2 and later.

Written

Hold, and a pad appears

Press and hold anywhere the screen is blank — not on a word — and a small four-arrow pad appears in the top-right corner. Keep your finger down and slide the way you want to go: up, down, left or right. The pad shows which arrow is going out.

A file open in less, with a small four-arrow pad in the top-right corner of the terminal
It always appears in the same corner, clear of your thumb — so you can find it without looking for it.

Lift your finger and it is over. The hold by itself sends nothing, so a long press you did not mean costs you nothing.

The middle sends nothing

When the pad appears your finger is in the middle, and the middle is a dead zone: a dot sits at the centre and nothing is being sent. Move a little and the arrow on that side lights up and starts.

The arrow pad with its marker pushed down and chevrons under the down arrow
Pushed down. The chevrons are the speed — the further from the middle, the faster it repeats.

Push further to repeat faster, ease back toward the middle to slow down, and return to the centre to stop without lifting. Direction can change without letting go: slide from down round to right and the arrows follow.

Where it earns its keep

Anywhere a keyboard arrow would do, with no keyboard open:

  1. The last command. Hold, nudge up, and the shell walks back through its history.
  2. Reading something long. less, man, a log file — scroll with down instead of swiping past the part you wanted.
  3. Editors and menus. vim, a text-mode menu, the list a switch or a router puts up over telnet.
  4. Inside tmux. It works in programs that track the mouse too, so a tmux or zellij session is not somewhere the pad stops working.

It does not get in the way of selecting text

Long-pressing on a word still selects that word, with the handles and the Copy pill. The pad is what you get when there is no word under your finger — the empty space to the right of a short line, or the blank area below a prompt.

If a pad turns up when you meant to select, lift and press again on the text itself; if you get a selection when you wanted arrows, aim at an empty part of the line.