lib/ppcurses/actions/GetBooleanAction.rb in ppcurses-0.0.21 vs lib/ppcurses/actions/GetBooleanAction.rb in ppcurses-0.0.22

- old
+ new

@@ -19,11 +19,11 @@ @win.addstr(']') end def execute - print_prompt() + print_prompt # Enables reading arrow keys in getch @win.keypad(true) while 1 noecho c = @win.getch @@ -31,10 +31,10 @@ if c == KEY_LEFT then @state = false end if c == KEY_RIGHT then @state = true end if c == 10 then break end echo - print_prompt() + print_prompt end echo end def data