throng v1.0.0-beta4

Terminal


Use Option as Meta (macOS only)

Cog › Settings › Terminal

terminals.macOptionIsMeta

Make Option act as the Meta key in terminals, so programs that use Meta receive it.

Default: off · Values: on · off

Shells and editors such as bash, zsh and Emacs use Meta for shortcuts like Meta+B and Meta+F, a word back and forward. On, Option+B and Option+F reach them as those shortcuts. Off, Option types the characters your keyboard layout puts on it, such as # or @.


Custom terminal flavours

Cog › Settings › Terminal

terminals.flavours

Shells you add to the Flavour dropdown, each with its own program and arguments.

Default: none · Values: A table of flavours, in order: an id (required, unique), a label, the executable (required), its arguments and default shell arguments

Shells of your own, offered in the Flavour dropdown after the built-ins, in this order. Edited in a list window; a row needs an id and an executable before it is saved.


Default shell arguments

Cog › Settings › Terminal

terminals.defaultShellArguments

Arguments a shell gets every time it starts, by flavour, such as -NoLogo for pwsh.

Default: none · Values: A table of flavour id → arguments

Shell arguments passed to a flavour every time it starts, for example pwsh → -NoLogo. Edited in a list window.


Hidden built-in flavours

Cog › Settings › Terminal

terminals.disabledBuiltins

Built-in shells to leave out of the Flavour dropdown.

Default: none · Values: Any of the built-in flavours this machine has

Built-in flavours to leave out of the Flavour dropdown. Every built-in this machine has is listed, hidden ones ticked, so unticking one shows it again.


Remember terminal form values

Cog › Settings › Terminal

terminals.formHistory.enabled

Offer Startup Command and Shell Arguments values used before, per terminal type.

Default: on · Values: on · off

The new-terminal form's Startup Command and Shell Arguments fields then suggest what you typed there before, kept separately for each terminal type. Off stops recording and offering them, and keeps what is already stored until cleared.


Terminal form values remembered

Cog › Settings › Terminal

terminals.formHistory.maxEntries

How many past values each terminal form field remembers, per terminal type.

Default: 10 entries · Values: 1 – 50 entries, step 1

Used while Remember terminal form values is on. Each field keeps its newest values up to this many, for each terminal type, and drops the oldest past it. Lowering this trims every list to its newest entries.


Show terminal status bar

Cog › Settings › Terminal

terminals.showStatusBar

Show the status bar along the bottom of each terminal panel.

Default: on · Values: on · off

The bar names the terminal's shell, shows where a link under the pointer leads, and holds the panel's toggles: Remember the last running command, Reopen in the last directory and Terminal notifications. Off hides it in every terminal, and the same toggles stay on the terminal's header menu. Editors and previews have a bar of their own: Show panel status bar, under Editor.


Shell integration

Cog › Settings › Terminal

terminals.shellIntegration

Let PowerShell and Git Bash report their working directory, so throng follows your cd.

Default: on · Values: on · off

throng reads most shells' working directory from outside, but cd in PowerShell and Git Bash never moves the directory another program can see. For those two, throng adds a small prompt hook that reports the directory after each command, so the panel title's {path} and Reopen in the last directory know where you are. The PowerShell hook also moves the real working directory along, so a folder you have left can be deleted. Each hook runs your own prompt afterwards, so a themed prompt still draws. Off, those two shells are not tracked, and Reopen in the last directory is unavailable for them. Switch it off if it clashes with a custom prompt.


Reload terminals when a project opens

Cog › Settings › Terminal

terminals.reloadMode

Whether a project's terminals start when it opens, or each waits for you to reload it.

Default: automatic · Values: automatic · manual

Automatic starts every terminal in every tab as a project opens. Manual starts none: each panel waits with a Reload action.


Remember the last running command by default

Cog › Settings › Terminal

terminals.defaultRememberCommand

Tick “Remember the last running command” on new terminal panels.

Default: off · Values: on · off

Ticks Remember the last running command on new terminal panels: a command running when the terminal closes runs again when it next starts. A running Claude Code session is remembered as a resume of that session, not a fresh start. A panel keeps its own choice.


Reopen in the last directory by default

Cog › Settings › Terminal

terminals.defaultRememberDirectory

Tick “Reopen in the last directory” on new terminal panels.

Default: on · Values: on · off

Ticks Reopen in the last directory on new terminal panels. A directory that has gone away falls back to the project root.


Terminal notifications by default

Cog › Settings › Terminal

terminals.defaultNotifications

Tick “Terminal notifications” on new terminal panels.

Default: on · Values: on · off

Ticks Terminal notifications on new terminal panels, so a terminal can raise attention marks, pop-ups and desktop notifications. Off, every terminal that has not chosen for itself stays silent, terminals you already have included. A terminal's own toggle, on its status bar or in its menu, overrides this for that terminal.


Run as administrator by default (Windows only)

Cog › Settings › Terminal

terminals.defaultRunAsAdmin

Tick “Run as administrator” on new terminal panels. The tick alone elevates nothing.

Default: off · Values: on · off

Ticks Run as administrator on new terminal panels. Whether a terminal can be elevated still depends on throng itself running elevated; this never elevates anything on its own.


Command tracking interval

Cog › Settings › Terminal

terminals.commandPollMs

How often throng checks which command a busy terminal is running.

Default: 1 s (1,000 ms) · Values: 0.25 – 5 s, step 0.25 s

throng checks while a terminal has input or output, to name the command in the panel title, remember it for Remember the last running command, and notice when it finishes for the Command finished mark. A quiet terminal is checked ten times less often. Lower notices a new command sooner; higher does less work. A command you start and leave running for longer than one interval is always remembered.


Cog › Settings › Terminal

terminals.advertiseHyperlinks

Tell programs in new terminals that they can print clickable links.

Default: on · Values: on · off

Start terminal programs with FORCE_HYPERLINK=1, so tools that can print clickable links, Claude Code among them, do. Applies to terminals started afterwards; a terminal already running keeps the environment it started with. A FORCE_HYPERLINK the launching environment already carries is never overridden, in either direction, and throng never sets WT_SESSION or a borrowed TERM_PROGRAM. Off does not stop throng recognising paths printed as plain text.


Terminal title template

Cog › Settings › Terminal

terminals.titleTemplate

The name of a terminal panel, built from placeholders such as {command}, {shell} and {path}.

Default: ({title} ? "{app}: {title} | " : {command} ? "{command} | " : ""){shell}({path} ? " ({path})" : "") · Values: a title template

The name shows in the panel header and wherever throng names the panel, such as its notices and menus, in every window that shows it. It updates as the command, directory or program title changes. Preferences refuses a template it cannot read; one hand-edited into settings.json that throng cannot read is replaced by the default. A template that renders to nothing names the panel after its shell. The placeholders and expressions are under Terminal title templates.


Longest command in a terminal title

Cog › Settings › Terminal

terminals.titleCommandMaxLength

How many characters of the running command a terminal panel's name shows.

Default: 40 characters · Values: 10 – 200 characters, step 5 characters

{command} beyond this is shortened, with ….


Longest directory in a terminal title

Cog › Settings › Terminal

terminals.titlePathMaxLength

How many characters of the working directory a terminal panel's name shows.

Default: 40 characters · Values: 10 – 200 characters, step 5 characters

{path} beyond this keeps its root and last folder and drops folders from the middle.


Mark terminals that need you

Cog › Settings › Terminal › Attention

terminals.attention.enabled

Raise an attention mark on a terminal panel when something happens in it that you may want to see.

Default: on · Values: on · off

An attention mark flags the panel, its tab and its project, so you can leave a long job running and see when it wants you. The signals below choose what raises one. None of them marks the panel you are working in: while a terminal has keyboard focus in the focused window, its signals are ignored. A terminal whose own Terminal notifications toggle is off raises none either. Off, no terminal raises a mark and every existing terminal mark is withdrawn. The signals below are switched off with it.


Program exited

Cog › Settings › Terminal › Attention

terminals.attention.signals.processExited

Mark a terminal for attention when its program ends without you ending it.

Default: on · Values: on · off

The terminal's program is the shell, or the command it was started with. When it ends on its own, such as a build started as the panel's command finishing or a shell crashing, the panel is marked: an exit code of zero raises the Attention mark, any other the Failed mark. An end you asked throng for, such as destroying the panel or unloading its project, raises nothing. throng hears of the exit the moment it happens, so this mark is never late.


Command finished

Cog › Settings › Terminal › Attention

terminals.attention.signals.commandFinished

Mark a terminal for attention when the command running in it finishes.

Default: on · Values: on · off

A command is whatever you run at the shell's prompt, such as npm test or git pull. When it ends and the shell is back at its prompt, the panel takes the Attention mark; throng cannot see a command's exit code, so it never raises the Failed mark. throng finds out by checking which command the terminal is running every Command tracking interval (under Terminal), and waits for a second check that still finds nothing, so the pause between two commands of a script does not count as a finish. The mark can therefore arrive up to two intervals after the command ends, and a command that starts and ends between two checks can be missed.


Bell

Cog › Settings › Terminal › Attention

terminals.attention.signals.bell

Mark a terminal for attention when a program in it rings the bell.

Default: on · Values: on · off

The bell is a control character (BEL) a program prints to ask for your attention, the terminal's equivalent of a beep. Some tools ring it when a long job ends, and you can ring it yourself at the end of a command, as in make; printf '\a'. Each ring raises the Attention mark. The mark is never a guess: it appears only when a program asked for it. A shell that beeps at a failed tab completion is the panel you are typing in, so it marks nothing.


Program notification

Cog › Settings › Terminal › Attention

terminals.attention.signals.notification

Mark a terminal for attention when a program in it sends a desktop notification.

Default: on · Values: on · off

Some programs ask the terminal to show a desktop notification, with escape sequences other terminals support too (OSC 9, OSC 777 and OSC 99). throng turns each request into an Attention mark on the panel and carries the program's message, up to 200 characters, into the notice that announces it. Whether that notice reaches the OS is up to the Notifications settings.


Progress ended

Cog › Settings › Terminal › Attention

terminals.attention.signals.progressEnded

Mark a terminal for attention when a program in it reports its progress done or failed.

Default: on · Values: on · off

Some programs report a progress bar to the terminal (the OSC 9;4 sequence Windows Terminal reads), such as package installers and long builds. When a program clears its progress, the panel takes the Attention mark; when it reports an error, the Failed mark. A program that never reports progress raises neither.


Unseen output

Cog › Settings › Terminal › Attention

terminals.attention.signals.unseenOutput

Mark a terminal for attention when it prints output while you are working elsewhere.

Default: off · Values: on · off

The mark comes from the first output after at least a second of silence, so a steady stream marks the panel once rather than on every line, and a new shell printing its first prompt marks nothing. It is a guess: throng cannot tell output you care about from a progress counter or a log line, which is why it ships off.


Output went quiet

Cog › Settings › Terminal › Attention

terminals.attention.signals.outputQuiet

Mark a terminal for attention when it prints and then stays silent for the quiet time below.

Default: off · Values: on · off

Meant for a program that prints while it works and then waits for you, such as a prompt asking a question. Once a terminal has printed, throng starts timing; when the output has stayed silent for Quiet time, the panel takes the Attention mark, unless you are working in it. It is a guess: throng cannot tell a program waiting for you from one working without printing, so a long silent step can mark a panel too.


Quiet time

Cog › Settings › Terminal › Attention

terminals.attention.quietMs

How long a terminal must stay silent after activity before Output went quiet marks it.

Default: 10 s (10,000 ms) · Values: 10 – 600 s, step 10 s; 1,000 – 3,600,000 ms in the box

Used only while Output went quiet is on. Any new output restarts the count. A short time catches a waiting prompt sooner but marks more programs that are only pausing; raise it if a slow build keeps marking its panel mid-run.


Terminal title templates

{command} the running command · {app} its program · {arch} its architecture · {title} the title the running program set · {shell} the terminal type · {path} the working directory · {folder} its last folder · {project} the owning project · {admin} Admin when elevated. Each is empty when there is nothing to show.

  • Text shows as typed, quotes included; {name} shows its value. (( )) {{ }} show a bracket or brace.
  • An expression is ( … ), or a placeholder followed by an operator. It is C#: text is a "string" (placeholders work inside; "" is a quote), and the operators are c ? a : b, a ?? b, a || b, a && b and !a, with C#'s precedence. A value is true when it is not empty; ||, && and ! may only be a condition before ?.
  • The default, ({title} ? "{app}: {title} | " : {command} ? "{command} | " : ""){shell}({path} ? " ({path})" : ""), reads claude: work on links | Git Bash (D:\git\throng) while a program that titled itself runs, ping localhost -t | Git Bash (D:\git\throng) while a command runs, and Git Bash (D:\git\throng) at a prompt.
  • In text, (( is a bracket, so an expression that opens on a bracket needs a space: ( ({title} ?? {app}) ? … ).