Skip to main content

Module notification

Module notification 

Source
Expand description

Desktop notification OSC encoders.

§Category

This module writes simple OSC 9 notifications and metadata-bearing OSC 99 notifications. Both forms are zero-width terminal string controls.

§OSC framing

Writers use the 7-bit OSC introducer and BEL terminator. OSC 99 joins metadata fields with : before the final body field.

§Mode interaction

Notification support is not advertised through a mode here. Terminals that do not implement the OSC numbers ignore the strings.

Functions§

write_desktop_notification
Send a metadata-bearing notification with ESC ] 99 ; <metadata> ; <body> BEL.
write_notify
Send a simple notification with ESC ] 9 ; <body> BEL.