VCode home

Send a keystroke to the shell

Agents: claude, codex, opencode · On: phone, desktop

Keycaps for the keys a phone keyboard does not offer: Tab, Esc, ↑, ↓, ^C, ^L, ⏎ and ^D. Each one types into the tab's terminal.

Why you would use it

A soft keyboard has no Escape and no Ctrl. A command is running and you want to stop it. A prompt is waiting for a key. The last command needs recalling with the up arrow. None of these is a character you can type.

How to use it

  1. Switch to Shell. On a phone, an Android tablet or an iPad, the two-row keypad (#tray-keys) stays visible in the bottom band while Shell mode is selected. Its keycaps read Tab, Esc, ↑, ↓, ^C, ^L, ⏎ and ^D.

    The terminal with the persistent two-row keypad below it.

  2. Tap a key. It reaches the shell as if typed on a keyboard, in order with the keys around it. A tap does not close the phone's keyboard, so you can type a line, tap Tab to complete it and carry on typing.

    sleep 30 typed, then ^C from the keypad: the line ends in ^C and a fresh prompt follows.

What you see

Options and settings

Option Default What it changes
VCODE_SHELL_SESSION v-code-shell (-prod in the installed unit) The tmux session the keys reach

Limits and known gaps