class Flumtter::Window::Popup
Public Instance Methods
show()
click to toggle source
# File lib/flumtter/app/core/windows/popup.rb, line 6 def show Dispel::Screen.open do |screen| Dispel::Window.open(@hight, @width, 0, 0) do |win| win.box(?|,?-,?*) win.setpos(win.cury+2, win.curx+1) win.addstr @title.title win.setpos(win.cury+1, 1) win.addstr "¯"*(@title.title.size+2) add_multiline_str(win, @body) win.getch end end end