Skip to content

Add ghostel-tty-forward-notify to forward notifications to the outer terminal - #683

Merged
dakra merged 1 commit into
mainfrom
feat/tty-forward-notify
Sep 13, 2026
Merged

dakra merged 1 commit into
mainfrom
feat/tty-forward-notify

Conversation

@dakra

@dakra dakra commented Sep 13, 2026

Copy link
Copy Markdown
Owner

Closes #679.

Adds ghostel-tty-forward-notify, an opt-in handler for ghostel-notification-function. On a tty frame it re-emits OSC 9 (empty title) or OSC 777 (title and body) to the terminal of the frame showing the buffer, or the selected frame, so a remote Emacs over ssh shows the notification on the local desktop. GUI frames fall back to ghostel-default-notify.

(setq ghostel-notification-function #'ghostel-tty-forward-notify)

Out of scope: tmux/screen between Emacs and the terminal drop the OSC; no DCS passthrough wrapper is emitted.

…terminal

On a tty frame the handler re-emits OSC 9 / OSC 777 to the terminal of
the frame showing the buffer, so a remote Emacs over ssh notifies the
local desktop.  GUI frames fall back to ghostel-default-notify.

Closes #679.
@dakra
dakra force-pushed the feat/tty-forward-notify branch from a24bd36 to c1853a3 Compare September 13, 2026 12:19
@dakra
dakra merged commit c1853a3 into main Sep 13, 2026
32 of 33 checks passed
@dakra
dakra deleted the feat/tty-forward-notify branch September 13, 2026 12:49

This branch was successfully deployed

1 active deployment
github-pages — c1853a32 Deployed Sep 13, 2026 by dakra via deploy #186
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.

When the terminal program issues a notification, could we configure forwarding for the notification?

1 participant