diff options
| author | Stanton Burchett <sburchett@medallia.com> | 2026-07-30 14:51:22 -0600 |
|---|---|---|
| committer | Stanton Burchett <sburchett@medallia.com> | 2026-07-30 14:51:22 -0600 |
| commit | 46e3650242cfe38941eb747e601484bd19c137bd (patch) | |
| tree | 16a1df66b7fead0e8ee1838e4b02179f5d2360b5 /src/osc-notify-decorator.ts | |
| parent | 64b564b52ba7d22ba8129821ab4b30542d971ff5 (diff) | |
Add OSC 777 support and clean up the notification title
Support OSC 777 ; notify ; title ; body (the rxvt/urxvt notification form) so a program can set an explicit title and body, with the semicolon-safe body rejoined via slice(2).join(";"). Clean the OSC 9 title: prefer a user-set custom tab name, and reduce filesystem-path titles to their last segment so shell tabs no longer show a long, truncated cwd.
Diffstat (limited to 'src/osc-notify-decorator.ts')
| -rw-r--r-- | src/osc-notify-decorator.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osc-notify-decorator.ts b/src/osc-notify-decorator.ts index abfb796..4beb029 100644 --- a/src/osc-notify-decorator.ts +++ b/src/osc-notify-decorator.ts @@ -28,7 +28,7 @@ export default class OscNotifyDecorator extends TerminalDecorator { private attachToSession(session: BaseSession, tab: BaseTerminalTabComponent<any>) { const middleware = new OscNotifyMiddleware( - () => (<any>tab).title, + () => (<any>tab).customTitle || (<any>tab).title, () => { this.hostWindow.bringToFront(); const parent = this.app.getParentTab(tab); |
