Typing, copy and paste
The terminals in Vektor Commander (the terminal panel and the terminal in each pane) behave like Terminal: your keyboard layout, input methods, control keys and the clipboard all work as you expect. This page explains the few places where a file manager and a terminal share keys.
Which terminal gets your typing
Only one place has the keyboard at a time: a pane's file list, a pane's terminal, or the terminal panel.
- Click a terminal to type in it. Showing the panel, or switching a pane to its terminal, also gives it the keyboard.
- A pane's terminal gets your typing only while its pane is the active pane.
- To go back to the files, click a pane, or press ⌘1 or ⌘2.
You can tell at a glance where typing will go: the cursor of a terminal that has the keyboard is a solid block, and the cursor of one that does not is a hollow box.
Keys that go to the shell
While a terminal has the keyboard, every key without the Command key goes to the shell or to the program running in it:
- Return, Delete, Tab (for completion), Escape and the arrow keys.
- The Control key combinations shells use, such as interrupt, end of input and suspend.
- Home and End, Page Up and Page Down, Forward Delete and Insert. Home and End work at the zsh and bash prompt, with the standard macOS shell setup and with frameworks such as oh-my-zsh.
- The function keys. While you type in a terminal, the function keys do not act on files; for example, pressing the rename key does not rename anything.
- Arrow keys and other keys with Shift, Option or Control follow the conventions shells and full-screen programs expect. Word-by-word movement at the zsh and bash prompt works as in Terminal, and programs such as vim, less, htop, tmux and command-line coding assistants receive the keys they look for, including a key for a new line that does not submit.
When a program switches the terminal into its own key mode, the arrow keys follow it, and they switch back when the program ends.
Keys that stay with Vektor Commander
Keys with the Command key go to Vektor Commander, not to the shell. That is how menu commands keep working while you type: for example ⌘T, ⌘K, ⇧⌘T, and the copy and paste keys described below.
Three Command keys are the exception. While a terminal has the keyboard they edit the shell's command line, the way they edit a line of text on a Mac:
| Key | What it does in a terminal |
|---|---|
| ⌘← | Moves the cursor to the start of the line. |
| ⌘→ | Moves the cursor to the end of the line. |
| ⌘⌫ | Deletes from the cursor to the start of the line. |
The Option key and special characters
The Option key types the character your keyboard layout gives it. On layouts that need Option for common
characters (Czech, Slovak, German, French and others), you can type @, {, }, [, ], |, \, ~
and the rest exactly as in any other app, so e-mail addresses, Git remotes and ssh user@host work as
typed.
As in Terminal's default setup, the Option key is not a Meta key. Accented letters, other scripts and emoji reach the shell exactly as typed.
Accents and input methods
Dead keys and input methods work in the terminal. While you compose a character or a word, for example an accented letter or Japanese or Chinese text, the text in progress is shown underlined at the cursor, and nothing is sent until you confirm it. Then the shell receives the finished text once. If you click elsewhere before you finish, the unfinished text is discarded.
Characters you insert from the Character Viewer also reach the shell.
Select text
- Drag across the text to select it. The selection can span several lines.
- Double-click a word to select it.
- Click once to clear the selection. Typing also clears it.

The selection stays on its text while new output scrolls in. Each session, and each pane terminal, has its own selection, separate from the files selected in the panes.
Copy
To copy the selected text, press ⌘C or choose Edit ▸ Copy. The text is copied as plain text and can be pasted in any app.
- With nothing selected, Copy does nothing; the clipboard keeps what it had.
- Cut copies the selected text too. Nothing is removed from the terminal.
- To select everything, including the scrollback, press ⌘A.
While a terminal has the keyboard, these keys never copy, cut or select files.
Paste
To paste text, press ⌘V or choose Edit ▸ Paste. The text goes to the terminal that has the keyboard, never to the other terminals and never into a folder as files.
- Text from any app arrives as plain text, without formatting.
- Every character arrives unchanged, including quotes,
$, backslashes, Unicode and emoji. - Text with several lines keeps its line breaks. Windows and older Mac line endings each become one line break.
- When the program asks for it (zsh does at every prompt), the text is delivered marked as a paste, so the lines are not run one by one as they arrive. In zsh, a pasted command waits for you to press Return.
- A very long paste is sent in pieces, and the app stays responsive while it arrives. Interrupting the shell, as you would to stop a command, also stops the rest of the paste.
- If the clipboard holds no text (only files or an image), Paste does nothing.
- An ended session does not accept a paste.
The terminal's right-click menu
Right-click (or Control-click) inside a terminal to open its own menu with Copy, Paste and Select All. Copy is available when text is selected, and Paste when the clipboard holds text. The menu has no file commands.

If the terminal you right-click does not have the keyboard, it takes it, so Paste goes to the terminal you clicked.
When text is selected, plugins that add commands to the terminal menu are listed below these three items and receive the selected text. See Using plugins.
Programs that use the mouse
Some programs ask the terminal to send them mouse activity, for example tmux or an editor with mouse support. While such a program runs, clicks, drags, scrolling and right-clicks go to the program, as in any terminal. Selecting text and the right-click menu return when the program stops using the mouse. The paste key still pastes.
Scrolling and colors
The terminal scrolls to follow new output. Scroll up to read earlier output; each session keeps its last 5,000 lines. Colors and text styles that programs print are shown as intended, and full-screen programs use their own screen and restore yours when they quit.

