Getting started
Open zterm and you get a window with one tab and one pane, running your usual shell. This page covers the first few things you'll want: splitting the screen, finding commands, and changing settings.
The chords below are written for macOS first, then Linux and Windows. Every chord is listed in Keyboard shortcuts, and you can change any of them.
Tabs and panes
A window holds tabs, and a tab holds panes.
| What you want | macOS | Linux and Windows |
|---|---|---|
| New tab | ⌘T | Ctrl+Shift+T |
| Split the pane to the right | ⌘D | Ctrl+Shift+\ |
| Split the pane downwards | ⇧⌘D | Ctrl+Shift+- |
| Close the pane | ⌘W | Ctrl+Shift+W |
| Move to the pane left, right, up or down | ⌥⌘ and an arrow | Ctrl+Shift and an arrow |
| Make this pane fill the tab, and put it back | ⇧⌘Return | Ctrl+Shift+Alt+Enter |
Panes are numbered, and the numbers run across every tab in the window. ⌘3, or Ctrl+Shift+3, goes to pane 3 wherever it is, switching tabs if it has to. If you've lost track of which pane is which, ⌘J (Ctrl+Shift+J) labels them all and waits for you to pick one.
The tab bar shows one chip per pane, with its number and title. When the window is too narrow for all of them at full titles, the bar keeps the tabs nearest the one you are in and hides the rest behind a button at each end: ◀ +3 on the left means three tabs are hidden to the left, and +12 ▶ on the right means twelve are hidden to the right. Hidden panes keep their numbers, so ⌘4 still goes to pane 4 whether or not its chip is on the bar. A squad leader's tile has a ring round it, and when a short bar folds a squad into one item, the leader's chip stays out of the fold.
Click a button for a list of the panes hidden on its side, one row per pane: its activity mark, its shortcut, its tile or its tab's colour, and its name. An agent's tile shows what it is doing, as it does on the agent's chip. Typing filters the list by a pane's name, its squad or its shortcut. Click a row, or press Enter on it, to go to that pane. Esc closes the list.
Closing a pane ends the program in it. On macOS and Linux the program loses its terminal and is sent SIGHUP at once. If it is still running 30 seconds later it is sent SIGTERM, and 30 seconds after that SIGKILL. Every process in the program's group gets the same signals. A job started with nohup keeps running, as it does when any terminal closes. Quitting zterm sends only the hangup, so a program that ignores it keeps running after zterm has gone.
When a program asks for something it does not show as you type, such as a password for sudo or ssh, the cursor becomes a padlock until the program is done reading it. The padlock means what you type now is hidden, so it only ever shows where your typing goes: in the pane you are in, never in another pane, a pane's title or a tab. Full-screen programs such as vim, which also stop the terminal showing your keys, keep their usual cursor. The padlock is drawn on macOS and Linux, for panes on this machine and for panes on another machine in your mesh. A pane on another machine shows it up to a quarter of a second after its program starts reading, and drops it when the link to that machine goes down. On Windows the cursor stays as it is.
The command palette
⇧⌘P, or Ctrl+Shift+P, opens the command palette. Type a few letters to filter, press Return to run.
Everything zterm can do is in there, including the actions with no shortcut, so it's the fastest way to find something you don't have a chord for. Rows ending in › open a list: pane and tab actions, your permissions, and the settings editor. Esc goes back a level, and Esc at the top closes the palette.
Settings
Press ⌘, or Ctrl+, to open the settings editor. It lists every setting, what each one accepts, and whether a change applies straight away or waits for a restart.
Settings live in a TOML file. To find it:
zterm config --path
On macOS and Linux that's ~/.config/zterm/config.toml, and on Windows it's %APPDATA%\zterm\config.toml. To start from a commented copy of every default:
zterm config --init
Then edit it and press ⇧⌘, (Ctrl+Shift+,) to reload, or pick Reload Settings from the palette. If zterm doesn't like the file it keeps running on its defaults and tells you what's wrong. zterm config --check asks the same question without opening a window.
The whole list is in the Settings reference. Two you'll probably want early:
font_size = 14.0
theme = "dark"
Making the text bigger
⌘= and ⌘- (Ctrl+= and Ctrl+-) change the text size for this session. ⌘0, or Ctrl+0, goes back to the font_size in your settings file.
Your shells on the panel
The panel's Overview lists your shells under Agents: every pane that isn't an agent's, one line each. A line shows the program running in the pane, such as zsh or vim, then its pane number and folder, then how long since it last wrote. The pane number is the one on the pane's chip in the tab bar, so pane 3 is the third chip. A pane whose program zterm can't read shows its name, or shell. Click a line to go to that pane. The first four are listed, and N more shows the rest. A pane that exited stays as a muted line for an hour.
Shells on another machine in your mesh are listed after yours, in the same shape, with the ↔ mark a remote pane's tab carries after the program. Where a local line shows its pane number, a remote one shows the machine's name, unless a tab here already shows that pane. Clicking a remote line goes to the tab that shows it. If no tab here shows it, the click opens it in a new tab. A machine zterm can't reach right now has no lines, except those a tab here already shows. A machine running an older zterm doesn't send what its panes are running, so its lines show shell, the machine and no time. On Windows, zterm can't read which program a shell is running, so those lines show the pane's name or shell.
An agent on another machine in your mesh works the same way wherever the panel shows it: in Needs you, Squads and Agents, and Overview. Clicking it goes to the tab that shows its pane, or opens its pane in a new tab. If zterm can't reach the agent's machine, its row says not reachable and can't be clicked, though its ticket still opens. If opening the pane fails, the reason shows beside the row.
Where to go next
- Keyboard shortcuts: every chord, on all three platforms.
- Settings reference: every setting and what it accepts.
- Control actions: driving zterm from a script.