Working

Terminal features

Find text in scrollback, keep reusable commands to hand, and turn on logging, recording and highlighting as you need them.

Appearance

Settings > Appearance > Terminal changes how every terminal looks. Changes apply to open terminals straight away, and the preview at the foot of the page shows the result.

With device sync on and settings included, the theme, colours, font and cursor follow you to your other computers; font size and line height stay per computer. The phone app uses the same themes: by default it follows your computer ("Same as desktop"), or you can pick a theme and cursor just for the phone in its Settings > Terminal appearance.

Emoji and Chinese, Japanese and Korean characters take two columns, as they do in programs that follow Unicode 11 (most shells and editors), so lines with them stay lined up.

Terminal profiles

A terminal profile is a named set of terminal settings that hosts use, so a production server never looks like a test box. Make them in Settings > Appearance > Terminal profiles. A profile can set:

Production profile adds a ready-made profile with a red edge and a Production banner; Staging profile does the same in amber, and New profile starts from your global settings. Each profile shows a preview and how many hosts use it.

Pick a profile for a host in its settings (Terminal profile, next to its group), or give a whole group a default under Group defaults. A host uses its own choice first, then its group's default; No profile keeps a host on the global settings even when its group has a default. Changes to a profile, a host or a group default reach open sessions straight away. Profiles and group defaults sync with your other settings.

Terminal behaviour

Settings > Terminal > Behaviour changes how every terminal works, straight away:

Character encoding

Older equipment (switches, routers, serial consoles, old Unix servers) may not use UTF-8. Choose its encoding in the host's settings (Character encoding) or in a terminal profile: UTF-8 (the default), ISO-8859-1 and the other ISO-8859 sets, Windows-1250 to 1258, KOI8-R, KOI8-U, CP866, Shift_JIS, EUC-JP, GBK, GB18030, Big5 and EUC-KR. Synapse then reads the session's output and sends your typing in that encoding; characters it has no code for are sent as ?. A host's own choice wins over its profile's. It works for SSH (both connection engines), Telnet, serial and local sessions, and a change applies to open sessions straight away.

Find in terminal

Press Ctrl+Shift+F (or use a pane's session menu > Find…) to search a pane's scrollback. The find bar searches as you type, with Match case, Match whole word and Regular expression toggles, a live "N of M results" count, and Enter / Shift+Enter to step through matches.

Search everywhere

Search everywhere looks in more than one place at once. Open it with Ctrl+Shift+G (or the command palette's "Search all panes") and pick what to search with the tabs at the top:

Pressing the same shortcut again closes the window; Esc does too.

Command marks

Synapse keeps track of where each command starts and ends. Every command gets a small mark beside its prompt and on the scrollbar: green when it succeeded, red when it failed (a non-zero exit code), grey when the result isn't known.

Web addresses, file paths, IP addresses and host names in the output are underlined when you point at them. Ctrl+click (Cmd+click on a Mac) opens them, and resting the pointer on a path, address or host name shows a menu:

To keep false alarms down, version numbers (version 1.2.3.4), file names that look like domains (notes.md, backup.tar.gz) and package names (org.apache.commons) are not linked.

Programs copying to the clipboard

tmux, vim, neovim and other programs can copy text to your computer's clipboard over SSH (OSC 52). Settings > Terminal > Clipboard and images sets whether they may: Ask each time (the default: a prompt shows what the program wants to copy), Allow or Off. A note shows each time something is copied. Programs can never read your clipboard, and very large copies are refused.

Broadcast input

Broadcast input sends what you type in one pane to other panes of the same workspace at once - handy for running the same command on several servers.

Snippets

Synapse has two related but separate places for reusable commands:

Each snippet can be run straight away or just typed into the terminal for you to check first.

Snippet variables

A snippet's command can hold placeholders that are filled in each time it runs. Running it shows a small form for the values first, with the command as it will be typed:

Values are typed into the shell exactly as written, so characters such as ;, |, $ and spaces mean what they mean to the shell. Tick Quote next to a value to pass it as one word (single quotes for bash and zsh, the right quoting for PowerShell and Command Prompt). Line breaks and other control characters aren't accepted. The last values you used are remembered for each snippet on this computer, except for variables whose names look secret (password, token, key and the like). Write \{{ for literal braces; templates such as {{.Names}} (docker's format strings) are left alone.

Run on several sessions

Run on sessions (in the Snippets drawer, and the Run on several sessions button on a snippet in Session tools) lists every open session to tick the ones to send it to; the panes receiving broadcast input start ticked. Built-in values such as {{host}} are filled in for each session. Run runs the snippet in each, Type only types it at each prompt without pressing Enter, and with more than one session Synapse lists them and asks before sending anything. Only connected sessions can be chosen.

Session tools

Open a pane's Session tools panel (the icon in the terminal's title bar, or its session menu) for a resizable side panel with:

Which command packs show under Tools can be changed in Settings > Terminal > Session tools.

Logs and recordings

The Logs and recordings service saves what happens in a session: a plain text log, a replayable recording (the standard asciicast format, playable in Synapse or with the external asciinema player), and an audit log of AI actions.

Highlights and triggers

With the Highlights and triggers service on, Settings > Terminal > Highlights and triggers lets you colour matching text in a session's output (plain text or a regular expression, in one of seven colours) and optionally fire an action when it appears:

A few example rules - errors, "failed", warnings, and a password-prompt pattern - are included, switched off until you turn them on.

Images and file transfers in the terminal

The Images and transfers in the terminal service (off by default) lets programs on the server show pictures and send or receive files right in the terminal:

When a transfer starts, a panel in the pane asks for the files to send or the folder to save into, then shows progress with a Cancel button (Ctrl+C cancels too; other keys are held back while a transfer runs). Received files keep only their own name - folders in the name and characters Windows can't use are dropped - and an existing file is never replaced without asking: you choose Replace or Keep both. A cancelled download leaves no partial file behind.

Persistent sessions

The Persistent sessions service runs your remote shell inside tmux (or screen) on the server and reattaches automatically after a dropped connection or your computer waking from sleep. Turn it on for every host in Settings > Connections > Persistent sessions, or override it per host in the host editor's Advanced section.

Smart input

The Smart input service adds autocomplete from history, paths and snippets, next-command suggestions, and Ctrl+I to turn plain English into a command using the Relay model - the command is typed for you to review and never runs by itself. See Services and Relay assistant for more.

Accessibility

Settings > Accessibility has:

Every control shows a focus ring when reached with the keyboard, and the Navigation shortcuts move between panes, workspaces, the sidebar and the terminal without the mouse.

Serial and Telnet

The Serial and Telnet service adds a Protocol choice to the host editor. A Serial host connects over a COM/serial port with settings for baud rate, data bits, parity, stop bits and flow control; a Telnet host just uses a host and port (23 by default).