Method: Muby::InputWindow#resize!
- Defined in:
- lib/muby/inputwindow.rb
#resize! ⇒ Object
62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/muby/inputwindow.rb', line 62 def resize! # Init the input box @inputBorder = Ncurses.newwin(height, width, top, left) @inputBorder.box(0,0) @inputBorder.keypad(true) @inputBorder.refresh # Init the window itself @inputWindow = Ncurses.newwin(height - 2, width - 2, top + 1, left + 1) @inputWindow.keypad(true) @inputWindow.scrollok(true) @inputWindow.nodelay(true) @inputWindow.refresh end |