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. They go to the tab's shell pane.

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 line of text you can type and send.

How to use it

  1. Switch to Shell. 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 shell output with the persistent two-row keypad below it.

  2. Tap a key to send it to the shell pane. A successful send shows a toast.

    The two-row keypad with a toast reading "sent C-c to pane".

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