Notifier

interface Notifier

Shows desktop notifications through the terminal.

Functions

Link copied to clipboard
abstract fun notify(title: String, body: String = "")

Shows a notification with title and body once the next frame is rendered. Terminals supporting the Kitty notification protocol show both separately. Otherwise the OSC 9 escape sequence is used, which terminals like iTerm2, Ghostty, and WezTerm support. Other terminals ignore it.