notification.go 295 B

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