Source File
winop.go
Belonging Package
github.com/charmbracelet/x/ansi
package ansiimport ()const (// ResizeWindowWinOp is a window operation that resizes the terminal// window.//// Deprecated: Use constant number directly with [WindowOp].ResizeWindowWinOp = 4// RequestWindowSizeWinOp is a window operation that requests a report of// the size of the terminal window in pixels. The response is in the form:// CSI 4 ; height ; width t//// Deprecated: Use constant number directly with [WindowOp].RequestWindowSizeWinOp = 14// RequestCellSizeWinOp is a window operation that requests a report of// the size of the terminal cell size in pixels. The response is in the form:// CSI 6 ; height ; width t//// Deprecated: Use constant number directly with [WindowOp].RequestCellSizeWinOp = 16)// WindowOp (XTWINOPS) is a sequence that manipulates the terminal window.//// CSI Ps ; Ps ; Ps t//// Ps is a semicolon-separated list of parameters.// See https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t.1EB0func ( int, ...int) string {if <= 0 {return ""}if len() == 0 {return "\x1b[" + strconv.Itoa() + "t"}:= make([]string, 0, len()+1)= append(, strconv.Itoa())for , := range {if >= 0 {= append(, strconv.Itoa())}}return "\x1b[" + strings.Join(, ";") + "t"}// XTWINOPS is an alias for [WindowOp].func ( int, ...int) string {return WindowOp(, ...)}
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)