Source File
modes.go
Belonging Package
github.com/charmbracelet/x/ansi
package ansi// Modes represents the terminal modes that can be set or reset. By default,// all modes are [ModeNotRecognized].type Modes map[Mode]ModeSetting// Get returns the setting of a terminal mode. If the mode is not set, it// returns [ModeNotRecognized].func ( Modes) ( Mode) ModeSetting {return []}// Delete deletes a terminal mode. This has the same effect as setting the mode// to [ModeNotRecognized].func ( Modes) ( Mode) {delete(, )}// Set sets a terminal mode to [ModeSet].func ( Modes) ( ...Mode) {for , := range {[] = ModeSet}}// PermanentlySet sets a terminal mode to [ModePermanentlySet].func ( Modes) ( ...Mode) {for , := range {[] = ModePermanentlySet}}// Reset sets a terminal mode to [ModeReset].func ( Modes) ( ...Mode) {for , := range {[] = ModeReset}}// PermanentlyReset sets a terminal mode to [ModePermanentlyReset].func ( Modes) ( ...Mode) {for , := range {[] = ModePermanentlyReset}}// IsSet returns true if the mode is set to [ModeSet] or [ModePermanentlySet].func ( Modes) ( Mode) bool {return [].IsSet()}// IsPermanentlySet returns true if the mode is set to [ModePermanentlySet].func ( Modes) ( Mode) bool {return [].IsPermanentlySet()}// IsReset returns true if the mode is set to [ModeReset] or [ModePermanentlyReset].func ( Modes) ( Mode) bool {return [].IsReset()}// IsPermanentlyReset returns true if the mode is set to [ModePermanentlyReset].func ( Modes) ( Mode) bool {return [].IsPermanentlyReset()}
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)