feat(tui): add dynamic terminal window title (#5112)

This commit is contained in:
Saatvik Arya
2025-12-07 02:19:11 +05:30
committed by GitHub
parent 2e5c2d5e98
commit 3ec34ee3dd
2 changed files with 22 additions and 0 deletions

View File

@@ -7,6 +7,8 @@ export const { use: useExit, provider: ExitProvider } = createSimpleContext({
init: (input: { onExit?: () => Promise<void> }) => {
const renderer = useRenderer()
return async (reason?: any) => {
// Reset window title before destroying renderer
renderer.setTerminalTitle("")
renderer.destroy()
await input.onExit?.()
if (reason) {