feat: initial commit
This commit is contained in:
commit
a161b86c9a
705 changed files with 288162 additions and 0 deletions
18
vendor/github.com/charmbracelet/x/ansi/iterm2.go
generated
vendored
Normal file
18
vendor/github.com/charmbracelet/x/ansi/iterm2.go
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package ansi
|
||||
|
||||
import "fmt"
|
||||
|
||||
// ITerm2 returns a sequence that uses the iTerm2 proprietary protocol. Use the
|
||||
// iterm2 package for a more convenient API.
|
||||
//
|
||||
// OSC 1337 ; key = value ST
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// ITerm2(iterm2.File{...})
|
||||
//
|
||||
// See https://iterm2.com/documentation-escape-codes.html
|
||||
// See https://iterm2.com/documentation-images.html
|
||||
func ITerm2(data any) string {
|
||||
return "\x1b]1337;" + fmt.Sprint(data) + "\x07"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue