notification.go

 1package termenv
 2
 3// Notify triggers a notification using OSC777.
 4func Notify(title, body string) {
 5	output.Notify(title, body)
 6}
 7
 8// Notify triggers a notification using OSC777.
 9func (o *Output) Notify(title, body string) {
10	_, _ = o.WriteString(OSC + "777;notify;" + title + ";" + body + ST)
11}