voidterm/termutil/modes.go

31 lines
749 B
Go
Raw Normal View History

2024-01-14 20:15:26 +00:00
package termutil
2024-01-14 18:33:53 +00:00
type Modes struct {
ShowCursor bool
ApplicationCursorKeys bool
BlinkingCursor bool
2024-01-14 20:15:26 +00:00
ReplaceMode bool // overwrite character at cursor or insert new
OriginMode bool // see DECOM docs - whether cursor is positioned within the margins or not
2024-01-14 18:33:53 +00:00
LineFeedMode bool
2024-01-14 20:15:26 +00:00
ScreenMode bool // DECSCNM (black on white background)
2024-01-14 18:33:53 +00:00
AutoWrap bool
2024-01-14 20:15:26 +00:00
SixelScrolling bool // DECSDM
2024-01-14 18:33:53 +00:00
BracketedPasteMode bool
}
type MouseMode uint
type MouseExtMode uint
const (
MouseModeNone MouseMode = iota
MouseModeX10
MouseModeVT200
MouseModeVT200Highlight
MouseModeButtonEvent
MouseModeAnyEvent
MouseExtNone MouseExtMode = iota
MouseExtUTF
MouseExtSGR
MouseExtURXVT
)