mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
Tidied and coloured console messages
This commit is contained in:
@@ -44,6 +44,27 @@ module Kernel
|
||||
echo string
|
||||
echo "\r\n"
|
||||
end
|
||||
|
||||
def echoln_good(string)
|
||||
echo "\e[32m" # Green text
|
||||
echo string
|
||||
echo "\e[0m" # Back to default text color
|
||||
echo "\r\n"
|
||||
end
|
||||
|
||||
def echoln_bad(string)
|
||||
echo "\e[31m" # Red text
|
||||
echo string
|
||||
echo "\e[0m" # Back to default text color
|
||||
echo "\r\n"
|
||||
end
|
||||
|
||||
def echoln_warn(string)
|
||||
echo "\e[33m" # Brown/yellow text
|
||||
echo string
|
||||
echo "\e[0m" # Back to default text color
|
||||
echo "\r\n"
|
||||
end
|
||||
end
|
||||
|
||||
Console.setup_console
|
||||
|
||||
@@ -676,7 +676,7 @@ module PluginManager
|
||||
File.open("Data/PluginScripts.rxdata", 'wb') { |f| Marshal.dump(scripts, f) }
|
||||
# collect garbage
|
||||
GC.start
|
||||
echoln " done."
|
||||
echoln_good "done"
|
||||
echoln ""
|
||||
end
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user