Lokyr
Documentation

Progress and status

On this page

macOS · on by default · the tabs and progress plugins

Programs such as Gradle, cargo and AI agents can report how far along their work is, and whether they work, wait for you or are done. Lokyr shows it on the program's tab and across the window's top, so that you can follow a build in one tab while you work in another.

Try it

Run this command:

for p in 20 40 60 80 100; do printf '\033]9;4;1;%d\033\\' "$p"; sleep 0.5; done; printf '\033]9;4;0\033\\'

A thin bar across the window's top fills to the end in two and a half seconds, then goes. Open a second tab with ⌘T (cmd+t) and run it again: the tab's outline fills too.

What it gives you

Get the progress of Gradle, Claude Code and cargo

Some programs send their progress only to the terminals that they recognize by their environment's variables, and don't recognize Lokyr yet. Until they do, turn their progress on:

ProgramTo get its progress in Lokyr
Gradle 9.8export ConEmuPID=1 in your shell's profile, as Gradle has no setting of its own
Claude Code 2.1export ConEmuPID=1 in your shell's profile, while its terminalProgressBarEnabled setting is on, as it is by default
cargo 1.99term.progress.term-integration = true in ~/.cargo/config.toml, or CARGO_TERM_PROGRESS_TERM_INTEGRATION=true in the environment

Programs that read ConEmuPID take it for a terminal of Windows. That's rarely a problem on macOS, but if a program behaves oddly, remove the variable first. Homebrew, npm, pip, uv, Go and Maven send no progress, in any terminal. Checked in November 2026: Gradle 9.8.2, Claude Code 2.1.318 and cargo 1.99.1.

Turn the bar off

[plugins.progress]
enabled = false

The bar goes from every window. The tabs still show the progress round their outlines.

Settings

How it works

A program prints escape codes that Lokyr reads and never shows: OSC 9;4 for its progress. Progress and status codes describes each, with what to print to send it.

A program can also report its status with OSC 7501, and its session's status with OSC 21337. · Since 1.3

A program that changes its progress many times a second costs Lokyr no frames: the window server moves the bar and the ring.

Limits

Troubleshooting

A program's progress doesn't show

Why: the program sends its progress only to terminals that it recognizes, or sends none.

Fix: turn it on as the table above shows, then open a new tab, whose shell reads your profile again.

Check: run the command of Try it. If the bar fills, Lokyr shows progress, and the program sends none.

The ring stays after the program ended

Why: a script that your shell ran, such as sh build.sh, ended without clearing its progress, such as when you stopped it with ⌃C, and shell integration is off, so Lokyr can't tell where its command ended.

Fix: clear it by hand:

printf '\033]9;4;0\033\\'

Check: the ring and the bar go.

See also