File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ require "colorize"
77RED = " \e [31m"
88GREEN = " \e [32m"
99BLUE = " \e [34m"
10+ YELLOW = " \e [33m"
11+ CYAN = " \e [36m"
12+ MAGENTA = " \e [35m"
1013RESET = " \e [0m"
1114
1215# Paths
@@ -117,13 +120,14 @@ end
117120
118121def show_gui_menu
119122 loop do
120- puts " \n [Q]uit - Close this terminal"
121- puts " [R]eboot - Reboot the system"
122- puts " [S]hutdown - Shutdown the system"
123- puts " [L]og out - Log out from current session"
124- puts " [T]erminal - Open a new Alacritty terminal"
125- puts " [A]utomatic Updates - Enable automatic updates on boot"
126- print " Select Your Choice: "
123+ puts " \n #{ YELLOW } === HackerOS Updater Menu ===#{ RESET } "
124+ puts " #{ GREEN } [Q]uit#{ RESET } #{ CYAN } - Close this terminal#{ RESET } "
125+ puts " #{ GREEN } [R]eboot#{ RESET } #{ CYAN } - Reboot the system#{ RESET } "
126+ puts " #{ GREEN } [S]hutdown#{ RESET } #{ CYAN } - Shutdown the system#{ RESET } "
127+ puts " #{ GREEN } [L]og out#{ RESET } #{ CYAN } - Log out from current session#{ RESET } "
128+ puts " #{ GREEN } [T]erminal#{ RESET } #{ CYAN } - Open a new Alacritty terminal#{ RESET } "
129+ puts " #{ GREEN } [A]utomatic Updates#{ RESET } #{ CYAN } - Enable automatic updates on boot#{ RESET } "
130+ print " #{ MAGENTA } Enter your choice (press key without Enter): #{ RESET } "
127131 choice = " "
128132 STDIN .raw do |io |
129133 byte = io.read_byte
You can’t perform that action at this time.
0 commit comments