Module: Clacky::UI2

Defined in:
lib/clacky/ui2.rb,
lib/clacky/ui2/block_font.rb,
lib/clacky/ui2/line_editor.rb,
lib/clacky/ui2/screen_buffer.rb,
lib/clacky/ui2/theme_manager.rb,
lib/clacky/ui2/ui_controller.rb,
lib/clacky/ui2/view_renderer.rb,
lib/clacky/ui2/layout_manager.rb,
lib/clacky/ui2/markdown_renderer.rb,
lib/clacky/ui2/terminal_detector.rb,
lib/clacky/ui2/themes/base_theme.rb,
lib/clacky/ui2/themes/hacker_theme.rb,
lib/clacky/ui2/components/todo_area.rb,
lib/clacky/ui2/themes/minimal_theme.rb,
lib/clacky/ui2/components/input_area.rb,
lib/clacky/ui2/components/inline_input.rb,
lib/clacky/ui2/components/base_component.rb,
lib/clacky/ui2/components/tool_component.rb,
lib/clacky/ui2/components/welcome_banner.rb,
lib/clacky/ui2/components/modal_component.rb,
lib/clacky/ui2/components/common_component.rb,
lib/clacky/ui2/components/message_component.rb,
lib/clacky/ui2/components/command_suggestions.rb

Defined Under Namespace

Modules: Components, LineEditor, MarkdownRenderer, Themes Classes: LayoutManager, ScreenBuffer, TerminalDetector, ThemeManager, UIController, ViewRenderer

Constant Summary collapse

VERSION =

Version of the UI2 system

"1.0.0"
BlockFont =

Alias for backward compatibility — BlockFont now lives at Clacky::BlockFont.

Clacky::BlockFont

Class Method Summary collapse

Class Method Details

.start(config = {}, &block) ⇒ Object

Quick start: Create a UI controller and run

Examples:

controller = Clacky::UI2::UIController.new
controller.on_input { |input| puts "Got: #{input}" }
controller.start

Parameters:

  • config (Hash) (defaults to: {})

    Optional configuration (working_dir, mode, model)



34
35
36
37
38
# File 'lib/clacky/ui2.rb', line 34

def self.start(config = {}, &block)
  controller = UIController.new(config)
  controller.on_input(&block) if block_given?
  controller.start
end