lib/ppcurses/actions/GetDataAction.rb in ppcurses-0.0.25 vs lib/ppcurses/actions/GetDataAction.rb in ppcurses-0.1.0

- old
+ new

@@ -44,11 +44,11 @@ end end def execute create_window - echo + Curses.echo @win.setpos(@win.cury, x_padding ) self.before_actions @@ -56,11 +56,11 @@ action.execute end self.after_actions - noecho + Curses.noecho @win.clear @win.refresh @win.close end @@ -69,17 +69,17 @@ @win.addstr(string) @win.setpos(@win.cury + 1, win_padding) end def print_success_line(string) - init_pair(1, COLOR_GREEN, COLOR_BLACK) + Curses.init_pair(1, COLOR_GREEN, COLOR_BLACK) @win.attron(color_pair(1)) self.print_line(string) @win.attroff(color_pair(1)) end def print_error_line(string) - init_pair(1, COLOR_RED, COLOR_BLACK) + Curses.init_pair(1, COLOR_RED, COLOR_BLACK) @win.attron(color_pair(1)) self.print_line(string) @win.attroff(color_pair(1)) end