The full terminal
⌥⌘O gives your shell the whole window: for output worth reading, or a program that takes the
screen — an editor, top, ssh. Each tab in it is a shell of its own.
| Key | Action |
|---|---|
| ⌥⌘O | Terminal |
| ⌘L | Command line |
| ⌘T | New terminal tab |
| ⌘W | Close terminal tab |
| ⇧⌘] | Next terminal tab |
| ⇧⌘[ | Previous terminal tab |
| ⇧⌘T | Terminal tabs… |
Showing it and going back
⌥⌘O shows it, over the panes, on the tab you were last on. The first time, it starts a shell in the active pane’s folder. ⌃⌘O does the same, and so does ⌃O over the panes — in the terminal ⌃O is the program’s: nano saves with it.
Three ways back to the panes:
- ⌥⌘O again.
- ⌘L, which leaves the keyboard on the line under the panes, ready for the next command.
- Esc twice in quick succession at an empty prompt. The shell hears neither press. This one needs the shell’s integration, which says when the prompt is empty.
Going back leaves every shell running, and the active pane arrives in the folder the shell went to — a visit of its own, so ⌘[ returns. Only a pane showing a folder follows, and only to a folder on this Mac. Anything marked stays marked where it was, and a notice says so.
A shell that ends — you typed exit — closes its tab. When the last tab closes you are back on the
panes, and the next ⌥⌘O starts a new shell where the active pane is.
What is on the screen
- The top row
- The tabs — below. It is there even with one tab, so opening a second never changes the shell’s size. At its right end, the key to the tabs menu and the key back to the panes.
- The shell’s screen
- Everything between. The shell is told its size from the window, and again whenever the window or its text changes size.
- The bottom row
- The function keys, numbered and nothing more, since bare they are the program’s. Hold ⌘ for a moment and the row lists what each does with it:
While the shell starts, the screen says Starting the shell…; if it cannot start, it says why.
Tabs
| Key | Action |
|---|---|
| ⌘T | New terminal tab |
| ⌘W | Close terminal tab |
| ⇧⌘I | Name terminal tab… |
| ⇧⌘] | Next terminal tab |
| ⇧⌘[ | Previous terminal tab |
| ⇧⌘T | Terminal tabs… |
Each tab is a shell of its own, opened in the active pane’s folder. ⌘1 to ⌘9 go straight to a tab by its number. These keys work with the full terminal up; over the panes, the same number keys are your favorites.
- A tab’s title
- The name of its shell’s folder —
~for your home — or, where Tabs are titled by says command, the command running in it. A name you give with ⇧⌘I replaces either, for as long as the tab is open; an empty name gives the title back. •against the number- A command is running.
?against the number- A running command has been quiet for a second, with the cursor after something on its line — a question, a password prompt — or with a program holding the whole screen. That is what waiting for an answer looks like, though nothing can tell for certain.
- Where the tabs do not fit, every title is cut to the same width. Past that, the tabs furthest from the one shown are left out, with a count at each end.
- ⇧⌘T lists each command with its key, then every tab with its state, on the digit of its number.
- The panes’ Terminal menu lists the open tabs too; choosing one opens the terminal on it.
- The command line, and the terminal beside a pane, always show the tab you are on.
- Tabs are not kept: each run of the application starts without any.
Closing a tab
⌘W ends the tab’s shell and whatever runs in it. Where something may be running, it asks first — naming the command where the shell said what it was — and Enter alone answers nothing: choose Close tab or Keep it. A shell without its integration never says whether it is busy, so closing one always asks.
The tab after it is shown, or the one before it at the end. Closing the last goes back to the panes.
Its menus
The full terminal has a menu bar of its own — Terminal, Tabs and Options — on F9 with ⌘ held, since the bare key is the program’s. A tap of ⌥ does not open them here either: ⌥ is the program’s too.
- The first row of Terminal reads Back to the panes.
- Tabs ends with the open tabs, the one shown ticked.
- The help for the terminal is F1 with ⌘ held.
- F10, with ⌘ held too, lists what can be changed about how the terminal looks: how its tabs are titled, and the size of the text.
Beside a pane, the same key opens the panes’ menu bar instead.
How programs look
- Colors are what the program asks for: the sixteen named ones in the application’s own palette, the 256-color set and 24-bit color exactly. Bold over one of the first eight colors is its bright twin, as programs expect.
- Text can be bold, dim, italic, struck through, inverse or hidden, and underlined five ways: plain, double, curly, dotted or dashed. Blinking text is drawn steady.
- The cursor is the shape the program sets — a block, a bar or an underline, blinking or not. A program that sets none gets a steady block.
- Characters made of several parts — an accent, a flag, an emoji — are drawn whole across the cells they take. A prompt theme’s segment separators are drawn by the application itself, so no specially patched font is needed.
- A program that redraws its whole screen at once — nvim, tmux — is shown only when each redraw is finished, never half drawn.
- The text is the window’s own: Font and Font size, and ⇧⌘= and ⇧⌘-, which the shell is told of as its new size.
- No bell. A program’s bell makes no sound and no flash.
- Text only. A picture a program tries to show inline does not appear.
Quitting with shells running
Quitting ends every shell and everything running in them. Where a command is running in a tab — or a shell has no integration to say whether one is — the application asks first, listing them: Quit anyway or Stay. A quit from a signal, with nobody to ask, asks nothing.