# How do terminal fonts, paste and shortcuts work?

> Cube Agent 2.4.1 Release (Build 2004105) User Guide.
> Category: Remote connections. Content baseline: 2026-12-05.
> Web page: https://cubeagent.app/en/docs/ssh_terminal/

## Fonts & Interface

The terminal follows the app's light/dark display mode and uses the **Code font** from font settings. Pick a code font in **Settings → App Settings → Appearance**—there is no need to select it again inside the terminal. If no font is configured or loading fails, the terminal falls back to the system monospace font.

## Common Operations

Tapping or swiping inside the terminal area will not bring up the on-screen keyboard; tap **Keys** in the quick key bar to start typing. Swipe up or down to scroll through history, and pinch with two fingers to adjust the font size (8–24, default 14) without opening the keyboard. Terminal font size is saved independently and does not affect the global code font; you can also adjust or reset it under **Display**. Open **Display** from the title bar menu to choose **Fit / 80 / 120 / 160 columns**. Fit mode wraps naturally to the screen width; full-screen programs such as `top` decide which columns to show, while wide-column modes report a larger terminal width to the remote host so you can pan left and right instead of breaking tables with forced line wraps.

Tap Cube to expand or collapse the quick key bar, which provides Esc, Tab, Ctrl, arrow keys, Keys, and More. Home, End, PgUp, PgDn, and key shortcuts live inside the **More** control panel, which you can also open from **Display** in the title bar. **Ctrl** works as a one-shot modifier: tap to activate it, then type `C` to send Ctrl+C, or combine it with arrow keys. To keep the key bar visible at all times, choose **More → Pin tools**. Even when Cube is hidden, an alternate key bar remains available.

## Focus Mode & Landscape

Enable **Focus mode** from the title bar menu or the control panel to hide the standard title bar and expand the terminal viewport; controls to exit focus mode and resize the font remain accessible at the top. On phones, you can switch to **Landscape**, then tap **Restore orientation** to return to the previous rotation policy; leaving the terminal page also restores it. Non-fullscreen windows may not support orientation switching—refer to the on-screen prompt.

The terminal runs a persistent shell, so states like `cd` and `export` carry over within the same terminal. Each chat command runs with its own working directory and does not inherit manual terminal state.

## Custom Shortcuts

Open **More (or Display) → Shortcuts → Manage** to add key combinations such as `Ctrl+L`, `Alt+B`, or `Ctrl+Shift+Left`. A label is optional—for example, you can name `Ctrl+L` "Clear screen". Tap a saved shortcut to edit or delete it. Up to 12 shortcuts can be saved and remain stored locally across restarts.

Supported combinations include Ctrl, Alt, and Shift paired with letters, digits, arrow keys, Home / End, PageUp / PageDown, Insert / Delete, and F1–F12. Certain combinations have no universal terminal encoding, in which case the app will prompt you to choose another key. Shortcuts send key combinations rather than command scripts; the actual effect depends on the remote shell or running program.

Default shortcuts include Ctrl+C, Ctrl+D, Ctrl+L, and Ctrl+Z. Ctrl+C typically interrupts the current command, Ctrl+D may exit the shell, and Ctrl+Z typically suspends the foreground job.

## Copy & Paste

Tap **Select text** in the control panel, long-press to highlight text, and tap **Copy selection**, or cancel selection to return to scroll mode. Tap **Paste** to preview the clipboard content first; multiline text requires an extra confirmation step. The app does not append an extra Enter, though line breaks already present in the pasted text may still execute commands.

External keyboards can operate the terminal directly. Press `Ctrl+Shift+C` to copy selected text, and `Ctrl+Shift+Esc` to move focus back to the native toolbar.
