Versions in this module Expand all Collapse all v0 v0.0.3 Dec 3, 2026 Changes in this version + func WallpaperWarnMessage(err error, opacity float64) string type LayoutConfig + FocusOnPointer *bool + func (l LayoutConfig) FocusOnPointerEnabled() bool v0.0.2 Dec 2, 2026 Changes in this version type TerminalConfig + OSC52 string + func (t TerminalConfig) OSC52Policy() string v0.0.1 Dec 1, 2026 Changes in this version + const ActionHelp + const ActionLayoutCycle + const ActionLayoutEqualize + const ActionLayoutFocusDown + const ActionLayoutFocusLeft + const ActionLayoutFocusRight + const ActionLayoutFocusUp + const ActionLayoutResizeDown + const ActionLayoutResizeLeft + const ActionLayoutResizeRight + const ActionLayoutResizeUp + const ActionLayoutSplitH + const ActionLayoutSplitV + const ActionLayoutTile + const ActionLayoutZoom + const ActionMobileRotate + const ActionOSKKeysDown + const ActionOSKKeysReset + const ActionOSKKeysUp + const ActionSettings + const ActionToggleOSK + const AppName + const DefaultRotateMaxAge + const DefaultRotateMaxBackups + const DefaultRotateMaxSize + const DefaultTabsMin + const LayoutTabs + const LayoutTiles + const ProgName + const ScrollbackUnlimited + const TabsBottom + const TabsTop + const TitleModeApp + const TitleModeAppProgram + const TitleModeBefore + const TitleModeProgram + var ErrBadColor = errors.New("cterm: bad color") + var ErrBadConfig = errors.New("cterm: bad config") + var ErrBadState = errors.New("cterm: bad window state") + var ErrUsage = errors.New("cterm: usage error") + var SettingsPending = []string + func AutoWallpaper() (image.Image, fyneterm.DesktopStyle, string, error) + func BuiltinThemeNames() []string + func ConfigDirs() []string + func ConfigKeys() []string + func DefaultConfigPath() string + func Enabled(p *bool) bool + func EnvUsage() []string + func FlagsHelp(fs flagPrinter, w io.Writer) + func FloatPtr(v float64) *float64 + func FontFamilies() []string + func FontFileExtensions() []string + func FontFileFor(family string) string + func FontFileForStyle(family, style string) string + func FormatColor(c color.RGBA) string + func LoadThemeFile(path string) (vt.Theme, error) + func LogFormats() []string + func LogLevels() []string + func LogPipes() []string + func NewLogger(cfg xlog.Config) *xlog.Logger + func NormalizeTitleMode(mode string) string + func OSKStatePath() string + func ParseBackspace(v string) byte + func ParseColor(s string) (color.RGBA, error) + func PrintVersion() + func ResetState(path string) error + func ResetTargets(cfgPath, statePath string, extraDirs ...string) []string + func ResolveTheme(cfg ThemeConfig) (vt.Theme, error) + func ResolveWallpaper(wallpaper string) (image.Image, fyneterm.WallpaperMode, fyneterm.DesktopStyle, string, error) + func SaveConfig(path string, cfg *Config) error + func SaveHelpGeometry(path string, g SettingsGeometry, base WindowState) error + func SaveState(path string, st WindowState) error + func SaveTheme(name string, th vt.Theme) (string, error) + func SaveThemeFile(path string, th vt.Theme) error + func SettingKeys() []string + func StatePath() string + func ThemeDir() string + func ThemeNames() []string + func UncoveredKeys() []string + func Usage(w io.Writer) + func WallpaperExtensions() []string + func WallpaperPath(wallpaper string) string + type App struct + Config Config + ConfigPath string + Done bool + FileConfig Config + Flags Flags + HelpGeometry SettingsGeometry + Log *xlog.Logger + Position *[2]int + SettingsGeometry SettingsGeometry + StateFound bool + StatePath string + Theme vt.Theme + Wallpaper image.Image + WallpaperMode fyneterm.WallpaperMode + WallpaperSetting string + WallpaperSource string + WallpaperStyle fyneterm.DesktopStyle + Warnings []string + WindowState WindowState + func Setup(args []string) (*App, error) + func (a *App) WindowPixelSize() ([2]int, bool) + func (a *App) WindowPosition() ([2]int, bool) + type Config struct + Font FontConfig + Keybindings KeybindingsConfig + Layout LayoutConfig + Log LogConfig + Mobile bool + MobileFullScreen bool + MobileOrientation string + OSK bool + OSKFullScreen bool + OSKLayout string + OSKMode string + OSKOrientation string + State StateConfig + Tabs TabsConfig + Terminal TerminalConfig + Theme ThemeConfig + UI UIConfig + Window WindowConfig + func DefaultConfig() Config + func (c *Config) Actions() *fyneterm.Registry + func (c *Config) ApplyBindings(reg *fyneterm.Registry) error + func (c *Config) FilterSettingsGeometry(g SettingsGeometry) SettingsGeometry + func (c *Config) FilterState(st WindowState) WindowState + func (c *Config) SetDefaults() + func (c *Config) StateForSave(prev, cur WindowState) WindowState + func (c *Config) StateForSaveSettings(prev, cur SettingsGeometry) SettingsGeometry + func (c *Config) Validate() error + func (c *Config) ValidateBindings() error + func (c *Config) WidgetConfig(term *vt.Terminal) fyneterm.Config + type DragToWheelMode int + const DragToWheelAuto + const DragToWheelOff + const DragToWheelOn + func ParseDragToWheel(v string) (DragToWheelMode, error) + type Flags struct + Bell string + Commands listFlag + ConfAction genconf.FileAction + Config string + ConfigDirs string + ConfigFile string + CopyOnSel string + CursorBlink string + FontFamily string + FontFile string + FontSize float64 + FontStyle string + FullScreen bool + GenConf bool + GenConfJSN flagoptional.Flag + GenConfYML flagoptional.Flag + Geometry string + Hold bool + Icon string + Layout string + LayoutPreset string + LogFlags *xlog.Flags + Login bool + Maximize bool + Mobile bool + MobileFullScreen bool + MobileLandscape bool + MobileOrientation string + MobilePortrait bool + Mouse string + Name string + NoPaneNumbers bool + OSK bool + OSKFullScreen bool + OSKLandscape bool + OSKLayout string + OSKMode string + OSKPortrait bool + Opacity float64 + PaneNumbers bool + Position string + Quiet bool + Reset bool + Role string + Scrollback int + Scrollbar string + ShowConf bool + SnapCells string + Theme string + ThemeDir string + ThemeList bool + Title string + UIScale float64 + Verbose bool + Version bool + WBlur int + WDarken float64 + Wait bool + Wallpaper string + WorkDir string + Zoom float64 + func (f *Flags) Action(cfg *Config, path string) (done bool, err error) + func (f *Flags) Getenv() + func (f *Flags) Given(names ...string) bool + func (f *Flags) Init(fs *flag.FlagSet) + func (f *Flags) ResolveConfigPath() string + func (f *Flags) UpdateConfig(cfg *Config) error + func (f *Flags) WindowPosition() (*[2]int, error) + type FontConfig struct + Family string + File string + LineSpacing float64 + Size float64 + Style string + SyntheticBold string + Zoom float64 + type KeybindingsConfig struct + Clear []string + Copy []string + FullScreen []string + Help []string + LayoutCycle []string + LayoutEqualize []string + LayoutFocusDown []string + LayoutFocusLeft []string + LayoutFocusRight []string + LayoutFocusUp []string + LayoutResizeDown []string + LayoutResizeLeft []string + LayoutResizeRight []string + LayoutResizeUp []string + LayoutSplitH []string + LayoutSplitV []string + LayoutTile []string + LayoutZoom []string + MobileRotate []string + OSKKeysDown []string + OSKKeysReset []string + OSKKeysUp []string + OSKToggle []string + OpacityDown []string + OpacityReset []string + OpacityUp []string + Paste []string + ScrollBottom []string + ScrollDown []string + ScrollLineDown []string + ScrollLineUp []string + ScrollTop []string + ScrollUp []string + SelectAll []string + Settings []string + TabClose []string + TabLast []string + TabMoveFirst []string + TabMoveLast []string + TabMoveLeft []string + TabMoveRight []string + TabMoveTo []string + TabNew []string + TabNext []string + TabPrev []string + TabSelect []string + ZoomIn []string + ZoomOut []string + ZoomReset []string + func DefaultKeybindingsConfig() KeybindingsConfig + type LayoutAction = fynelayout.Action + func LayoutActions(kb KeybindingsConfig) []LayoutAction + type LayoutConfig struct + Drag *bool + MinCols int + MinRows int + Mode string + PaneNumbers *bool + Preset string + func (l LayoutConfig) DragEnabled() bool + func (l LayoutConfig) PaneNumbersEnabled() bool + func (l LayoutConfig) PresetName() string + func (l LayoutConfig) TilesMode() bool + type LayoutState struct + Mode string + Preset string + Tree string + type LogConfig struct + File string + FileMode string + Format string + Level string + Pipe string + Rotate *bool + RotateMaxAge int + RotateMaxBackups int + RotateMaxSize int + func (l LogConfig) Apply(dst *xlog.Config) + func (l LogConfig) RotateEnabled() bool + func (l LogConfig) RotateMaxAgeValue() int + func (l LogConfig) RotateMaxBackupsValue() int + func (l LogConfig) RotateMaxSizeValue() int + func (l LogConfig) Validate() error + type ResetResult struct + Removed []string + Warnings []string + func Reset(cfgPath, statePath string, extraDirs ...string) (ResetResult, error) + func (r ResetResult) Empty() bool + type Setting struct + Get func(cfg *Config) string + Group SettingsGroup + Help string + Hidden bool + Key string + Kind SettingKind + Label string + Max float64 + Min float64 + Options []string + Set func(cfg *Config, value string) error + State bool + func Settings() []Setting + func SettingsByGroup(group SettingsGroup) []Setting + func (s Setting) Apply(cfg *Config, value string) error + func (s Setting) Value(cfg *Config) string + type SettingKind int + const SettingBool + const SettingEnum + const SettingFloat + const SettingInt + const SettingString + const SettingStrings + type SettingsGeometry struct + Height int + PositionKnown bool + Width int + X int + Y int + func (g SettingsGeometry) SizeKnown() bool + type SettingsGroup string + const GroupAdvanced + const GroupAppearance + const GroupColors + const GroupCompatibility + const GroupGeneral + const GroupKeyboard + const GroupLayout + const GroupState + const GroupTabs + func SettingsGroups() []SettingsGroup + type StateConfig struct + SaveFontSize *bool + SaveFullScreen *bool + SaveOpacity *bool + SavePosition *bool + SaveSize *bool + func (s StateConfig) SaveFontSizeEnabled() bool + func (s StateConfig) SaveFullScreenEnabled() bool + func (s StateConfig) SaveOpacityEnabled() bool + func (s StateConfig) SavePositionEnabled() bool + func (s StateConfig) SaveSizeEnabled() bool + type TabAction = fynelayout.Action + func TabActions(kb KeybindingsConfig) []TabAction + type TabsConfig struct + Compact *bool + ConfirmClose *bool + Min int + Position string + TitleMode string + TitleNumber *bool + func (t TabsConfig) BarPosition() string + func (t TabsConfig) CompactMode() bool + func (t TabsConfig) ConfirmCloseMode() bool + func (t TabsConfig) MinTabs() int + func (t TabsConfig) TitleModeValue() tabtitle.Mode + func (t TabsConfig) TitleNumberEnabled() bool + type TerminalConfig struct + AllowOSC52 *bool + AlternateScroll *bool + Backspace string + Bell string + BracketedPaste *bool + Command []string + CopyOnSelect bool + CopyOnSelectTarget string + CursorBlink bool + CursorStyle string + DragToWheel string + Hold bool + Login bool + MouseReporting bool + ScrollOnKeystroke *bool + ScrollOnOutput *bool + Scrollback int + Scrollbar string + Term string + UnsafePaste string + Wait bool + WorkDir string + func (t TerminalConfig) ScrollOnKeystrokeEnabled() bool + func (t TerminalConfig) ScrollOnOutputEnabled() bool + func (t TerminalConfig) ScrollbackLimit() int + func (t TerminalConfig) UnsafePasteMode() string + type ThemeConfig struct + Dir string + File string + Name string + type ThemeSlot struct + Get func(th *vt.Theme) color.RGBA + Key string + Label string + Set func(th *vt.Theme, c color.RGBA) + func ThemeSlots() []ThemeSlot + type UIConfig struct + Scale float64 + type WindowConfig struct + FullScreen bool + Height int + Icon string + Maximize bool + Name string + Opacity float64 + ResizeIndicator *bool + Role string + SnapToCells *bool + Title string + TitleMode string + Wallpaper string + WallpaperBlur int + WallpaperDarken float64 + Width int + type WindowState struct + FontSize *float64 + FullScreen bool + Height int + Help SettingsGeometry + Layout LayoutState + Layouts map[string]string + MobileOrientation string + Opacity *float64 + PositionKnown bool + PxH *int + PxW *int + Settings SettingsGeometry + UIScale *float64 + UIScaleAuto *bool + Width int + X int + Y int + func LoadState(path string) (WindowState, bool, error) + func (s *WindowState) SetFontSize(v float64) + func (s *WindowState) SetOpacity(v float64) + func (s *WindowState) SetUIScale(v float64) + func (s *WindowState) SetUIScaleAuto(auto bool) + func (s WindowState) FontSizeValue() (float64, bool) + func (s WindowState) OpacityValue() (float64, bool) + func (s WindowState) UIScaleAutoValue() (bool, bool) + func (s WindowState) UIScaleValue() (float64, bool)