Files
cclip/vendor/github.com/muesli/termenv/notification.go
PhatPhuckDave 3c5e991ec5 Add vendor
Specifically because I want to modify a dependency
2024-08-26 01:01:04 +02:00

12 lines
295 B
Go

package termenv
// Notify triggers a notification using OSC777.
func Notify(title, body string) {
output.Notify(title, body)
}
// Notify triggers a notification using OSC777.
func (o *Output) Notify(title, body string) {
_, _ = o.WriteString(OSC + "777;notify;" + title + ";" + body + ST)
}