Source File
notification.go
Belonging Package
github.com/charmbracelet/x/ansi
package ansiimport ()// Notify sends a desktop notification using iTerm's OSC 9.//// OSC 9 ; Mc ST// OSC 9 ; Mc BEL//// Where Mc is the notification body.//// See: https://iterm2.com/documentation-escape-codes.htmlfunc ( string) string {return "\x1b]9;" + + "\x07"}// DesktopNotification sends a desktop notification based on the extensible OSC// 99 escape code.//// OSC 99 ; <metadata> ; <payload> ST// OSC 99 ; <metadata> ; <payload> BEL//// Where <metadata> is a colon-separated list of key-value pairs, and// <payload> is the notification body.//// See: https://sw.kovidgoyal.net/kitty/desktop-notifications/func ( string, ...string) string {return fmt.Sprintf("\x1b]99;%s;%s\x07", strings.Join(, ":"), )}
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)