Class: Installation::Console::Tui

Inherits:
Object
  • Object
show all
Defined in:
src/lib/installation/console/tui.rb

Overview

the installer console implementation for the text mode (ncurses) UI

Instance Method Summary collapse

Instance Method Details

#run(&block) ⇒ Object

run the passed block in a console



24
25
26
27
28
29
# File 'src/lib/installation/console/tui.rb', line 24

def run(&block)
  start
  block.call if block_given?
ensure
  stop
end

#run_yast_module(*args) ⇒ Object

helper method for running an interactive YaST module



32
33
34
35
36
37
38
39
# File 'src/lib/installation/console/tui.rb', line 32

def run_yast_module(*args)
  # restore the UI back
  Yast::UI.OpenUI
  # run the YaST module
  Yast::WFM.call(*args)
  # display back the console prompt
  Yast::UI.CloseUI
end