Source File
title.go
Belonging Package
github.com/charmbracelet/x/ansi
package ansi// SetIconNameWindowTitle returns a sequence for setting the icon name and// window title.//// OSC 0 ; title ST// OSC 0 ; title BEL//// See: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Operating-System-Commandsfunc ( string) string {return "\x1b]0;" + + "\x07"}// SetIconName returns a sequence for setting the icon name.//// OSC 1 ; title ST// OSC 1 ; title BEL//// See: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Operating-System-Commandsfunc ( string) string {return "\x1b]1;" + + "\x07"}// SetWindowTitle returns a sequence for setting the window title.//// OSC 2 ; title ST// OSC 2 ; title BEL//// See: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Operating-System-Commandsfunc ( string) string {return "\x1b]2;" + + "\x07"}// DECSWT is a sequence for setting the window title.//// This is an alias for [SetWindowTitle]("1;<name>").// See: EK-VT520-RM 5–156 https://vt100.net/dec/ek-vt520-rm.pdffunc ( string) string {return SetWindowTitle("1;" + )}// DECSIN is a sequence for setting the icon name.//// This is an alias for [SetWindowTitle]("L;<name>").// See: EK-VT520-RM 5–134 https://vt100.net/dec/ek-vt520-rm.pdffunc ( string) string {return SetWindowTitle("L;" + )}
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)