...

Source file src/github.com/muesli/termenv/notification.go

Documentation: github.com/muesli/termenv

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

View as plain text