blob: c712f34059fe59f5c76a6a2a715ce36cb2b12c63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package ansi
// 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.html
func Notify(s string) string {
return "\x1b]9;" + s + "\x07"
}
|