Skip to content

Commit 15d50bf

Browse files
authored
Update main.cr
1 parent 6dbda72 commit 15d50bf

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

HackerOS-Updater/main.cr

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ require "colorize"
77
RED = "\e[31m"
88
GREEN = "\e[32m"
99
BLUE = "\e[34m"
10+
YELLOW = "\e[33m"
11+
CYAN = "\e[36m"
12+
MAGENTA = "\e[35m"
1013
RESET = "\e[0m"
1114

1215
# Paths
@@ -117,13 +120,14 @@ end
117120

118121
def 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

0 commit comments

Comments
 (0)