Skip to content

Commit

Permalink
feat(term): ansi: add ansi.Execute
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Apr 22, 2024
1 parent 14b82ac commit 5cc5941
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions exp/term/ansi/ansi.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package ansi

import "io"

// Execute is a function that "execute" the given escape sequence by writing it
// to the provided output writter.
//
// This is a syntactic sugar over [io.WriteString].
func Execute(w io.Writer, s string) (int, error) {
return io.WriteString(w, s)
}

0 comments on commit 5cc5941

Please sign in to comment.