Skip to content

feat(tui): end a terminal from its panel with Alt+X - #78

Merged
helightdev merged 1 commit into
mainfrom
feat/end-terminal
Nov 16, 2026
Merged

helightdev merged 1 commit into
mainfrom
feat/end-terminal

Conversation

@helightdev

Copy link
Copy Markdown
Owner

Closes #53.

A running terminal's footer now offers Alt+X end it, next to Ctrl+Q leave it running. The key, or a click on its hint, asks End the session? It stops whatever runs in it with y yes · n no; while it asks, keys don't reach the shell.

On yes, berth sends the session a hangup through sessions.signal, as closing a terminal window does, and a kill if it still runs 5 seconds later. Once it has ended, the panel closes; a session started from the panel is forgotten, as Enter would forget it. A process's output has no shell, so only terminals get the key.

The two ways out of the panel now come first in the footer, so a narrow panel doesn't cut them off.

This is the behaviour #54 proposed, written against the current screens: the old terminal UI that PR also changed is gone.

@helightdev
helightdev merged commit 9524a93 into main Nov 16, 2026
32 checks passed
@helightdev
helightdev deleted the feat/end-terminal branch November 16, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Terminal panel: add an "exit" button to end the session

1 participant