Raxol.Terminal.Modes.Types.ModeTypes (Raxol v0.5.0)
View SourceDefines types and constants for terminal modes. Provides a centralized registry of all terminal modes and their properties.
Summary
Functions
Returns all registered modes.
Returns all modes of a specific category.
Looks up a DEC private mode code and returns the corresponding mode definition.
Looks up a standard mode code and returns the corresponding mode definition.
Types
@type mode() :: %{ category: mode_category(), code: integer(), name: atom(), default_value: mode_value(), dependencies: [mode()], conflicts: [mode()] }
@type mode_category() :: :dec_private | :standard | :mouse | :screen_buffer
@type mode_state() :: :enabled | :disabled | :unknown
Functions
Returns all registered modes.
@spec get_modes_by_category(mode_category()) :: [mode()]
Returns all modes of a specific category.
Looks up a DEC private mode code and returns the corresponding mode definition.
Looks up a standard mode code and returns the corresponding mode definition.