lib/cryptum/ui.rb in cryptum-0.0.385 vs lib/cryptum/ui.rb in cryptum-0.0.386

- old
+ new

@@ -46,11 +46,11 @@ # This object is used to pass all of the UI sections # around to various Cryptum modules Cryptum::UI::TerminalWindow.new rescue Interrupt # Exit Gracefully if CTRL+C is Pressed During Session - Cryptum::UI::Exit.gracefully(which_self: self) + Cryptum::UI::Exit.gracefully rescue StandardError => e # Produce a Stacktrace for anything else Curses.close_screen raise e end @@ -71,11 +71,11 @@ window.nodelay = true window rescue Interrupt # Exit Gracefully if CTRL+C is Pressed During Session - Cryptum::UI::Exit.gracefully(which_self: self) + Cryptum::UI::Exit.gracefully rescue StandardError => e # Produce a Stacktrace for anything else Curses.close_screen raise e end @@ -97,11 +97,11 @@ style: style, string: "\u2500" * Curses.cols ) rescue Interrupt # Exit Gracefully if CTRL+C is Pressed During Session - Cryptum::UI::Exit.gracefully(which_self: self) + Cryptum::UI::Exit.gracefully rescue StandardError => e # Produce a Stacktrace for anything else Curses.close_screen raise e end @@ -195,11 +195,11 @@ ui_win.attron(Curses.color_pair(color_id) | font) do ui_win.addstr(string) end rescue Interrupt # Exit Gracefully if CTRL+C is Pressed During Session - Cryptum::UI::Exit.gracefully(which_self: self) + Cryptum::UI::Exit.gracefully rescue StandardError => e # Produce a Stacktrace for anything else Curses.close_screen raise e end @@ -210,22 +210,22 @@ str_divided_by_two = str.length / 2 (Curses.cols / 2) - str_divided_by_two rescue Interrupt # Exit Gracefully if CTRL+C is Pressed During Session - Cryptum::UI::Exit.gracefully(which_self: self) + Cryptum::UI::Exit.gracefully rescue StandardError => e # Produce a Stacktrace for anything else Curses.close_screen raise e end public_class_method def self.col_first 0 rescue Interrupt # Exit Gracefully if CTRL+C is Pressed During Session - Cryptum::UI::Exit.gracefully(which_self: self) + Cryptum::UI::Exit.gracefully rescue StandardError => e # Produce a Stacktrace for anything else Curses.close_screen raise e end @@ -233,11 +233,11 @@ # Jump to Second Column public_class_method def self.col_second (Curses.cols / 8) + 5 rescue Interrupt # Exit Gracefully if CTRL+C is Pressed During Session - Cryptum::UI::Exit.gracefully(which_self: self) + Cryptum::UI::Exit.gracefully rescue StandardError => e # Produce a Stacktrace for anything else Curses.close_screen raise e end @@ -245,11 +245,11 @@ # Jump to Third Column public_class_method def self.col_third ((Curses.cols / 8) * 3) + 2 rescue Interrupt # Exit Gracefully if CTRL+C is Pressed During Session - Cryptum::UI::Exit.gracefully(which_self: self) + Cryptum::UI::Exit.gracefully rescue StandardError => e # Produce a Stacktrace for anything else Curses.close_screen raise e end @@ -257,11 +257,11 @@ # Jump to Fourth Column public_class_method def self.col_fourth ((Curses.cols / 4) * 3) - 3 rescue Interrupt # Exit Gracefully if CTRL+C is Pressed During Session - Cryptum::UI::Exit.gracefully(which_self: self) + Cryptum::UI::Exit.gracefully rescue StandardError => e # Produce a Stacktrace for anything else Curses.close_screen raise e end @@ -320,10 +320,10 @@ end key_press_event rescue Interrupt # Exit Gracefully if CTRL+C is Pressed During Session - Cryptum::UI::Exit.gracefully(which_self: self) + Cryptum::UI::Exit.gracefully rescue StandardError => e # Produce a Stacktrace for anything else Curses.close_screen raise e end