Tui
Main application class
Constants
BORDERS = {BorderStyle::Light => BorderChars.new(h: '─', v: '│', tl: '┌', tr: '┐', bl: '└', br: '┘', t_down: '┬', t_up: '┴', t_right: '├', t_left: '┤', cross: '┼'), BorderStyle::Heavy => BorderChars.new(h: '━', v: '┃', tl: '┏', tr: '┓', bl: '┗', br: '┛', t_down: '┳', t_up: '┻', t_right: '┣', t_left: '┫', cross: '╋'), BorderStyle::Double => BorderChars.new(h: '═', v: '║', tl: '╔', tr: '╗', bl: '╚', br: '╝', t_down: '╦', t_up: '╩', t_right: '╠', t_left: '╣', cross: '╬'), BorderStyle::Round => BorderChars.new(h: '─', v: '│', tl: '╭', tr: '╮', bl: '╰', br: '╯', t_down: '┬', t_up: '┴', t_right: '├', t_left: '┤', cross: '┼'), BorderStyle::Ascii => BorderChars.new(h: '-', v: '|', tl: '+', tr: '+', bl: '+', br: '+', t_down: '+', t_up: '+', t_right: '+', t_left: '+', cross: '+')}
Border character sets for each style
VERSION = "0.1.0"
Class methods
Last CSS error (for error overlay)
current_app
Sourcecurrent_app=(current_app : App | Nil)
Sourcedev_mode=(dev_mode : Bool)
Dev mode - enables hot reload and debug features Set via TUI_DEV=1 environment variable or programmatically
dev_mode?
Dev mode - enables hot reload and debug features Set via TUI_DEV=1 environment variable or programmatically
scrollbar_overlays
Scrollbar overlay registry - drawn after all widgets, before regular overlays This ensures scrollbars are never overwritten by content Cleared each frame before render, widgets register during their render
theme
Sourcetheme=(theme : Theme)
SourceNested types
- Tui::ANSI
- Tui::App
- Tui::Attributes
- Tui::BorderChars
- Tui::BorderStyle
- Tui::BoxModel
- Tui::Buffer
- Tui::Button
- Tui::CSS
- Tui::Calendar
- Tui::Cell
- Tui::Checkbox
- Tui::CodeView
- Tui::Collapsible
- Tui::Color
- Tui::ColorPicker
- Tui::ComboBox
- Tui::CommitInfo
- Tui::Constraints
- Tui::DataTable
- Tui::Dialog
- Tui::DiffFile
- Tui::DiffHunk
- Tui::DiffLine
- Tui::DiffParser
- Tui::DiffView
- Tui::Digits
- Tui::Dimension
- Tui::DraggableWindow
- Tui::Event
- Tui::FilePanel
- Tui::Footer
- Tui::Grid
- Tui::HBox
- Tui::Header
- Tui::IconSidebar
- Tui::Input
- Tui::InputParser
- Tui::InputProvider
- Tui::Key
- Tui::KeyEvent
- Tui::Label
- Tui::Layout
- Tui::Link
- Tui::ListView(T)
- Tui::LoadingIndicator
- Tui::Log
- Tui::Markdown
- Tui::MarkdownView
- Tui::MaskedInput
- Tui::MenuBar
- Tui::MockInputProvider
- Tui::Modifiers
- Tui::MouseAction
- Tui::MouseButton
- Tui::MouseEvent
- Tui::OverlayRenderer
- Tui::Panel
- Tui::PasteEvent
- Tui::Placeholder
- Tui::Pretty
- Tui::ProgressBar
- Tui::RadioGroup
- Tui::Reactive
- Tui::Rect
- Tui::ResizeEvent
- Tui::RichText
- Tui::Rule
- Tui::ScrollArea
- Tui::ScrollBar
- Tui::SelectionList(T)
- Tui::Slider
- Tui::Sparkline
- Tui::SplitContainer
- Tui::StdinInputProvider
- Tui::Style
- Tui::Switch
- Tui::TUML
- Tui::TabbedPanel
- Tui::Terminal
- Tui::Testing
- Tui::TextEditor
- Tui::TextViewer
- Tui::Theme
- Tui::TimePicker
- Tui::Toast
- Tui::ToolResult
- Tui::Tree(T)
- Tui::Unicode
- Tui::VBox
- Tui::View
- Tui::ViewRegistry
- Tui::WakeupEvent
- Tui::Widget
- Tui::WindowManager