mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 06:47:00 +00:00
fix: 更新安装程序版本号并优化shell欢迎界面
- 将安装程序版本号从0.3.7 Beta 9更新至0.3.7 Beta 10 - 重构shell.lua中的欢迎界面显示逻辑,避免重复代码 - 统一在shell启动时显示欢迎信息和图标
This commit is contained in:
@@ -27,24 +27,9 @@ local textutils = require("textutils")
|
||||
|
||||
if os.version then
|
||||
textutils.coloredPrint(colors.yellow, os.version(), colors.white)
|
||||
local image = paintutils.parseImage([[
|
||||
f f
|
||||
|
||||
f f
|
||||
ffff
|
||||
]])
|
||||
paintutils.drawImage(image, term.getCursorPos())
|
||||
else
|
||||
textutils.coloredPrint(colors.yellow, rc.version(), colors.white)
|
||||
local image = paintutils.parseImage([[
|
||||
f f
|
||||
|
||||
f f
|
||||
ffff
|
||||
]])
|
||||
paintutils.drawImage(image, term.getCursorPos())
|
||||
end
|
||||
textutils.coloredPrint(colors.yellow, "Welcome using the beta version of LeonOS!", colors.white)
|
||||
|
||||
thread.vars().parentShell = thread.id()
|
||||
shell.init(_ENV)
|
||||
@@ -97,6 +82,14 @@ for _, prog in ipairs(fs.list(completions)) do
|
||||
end
|
||||
|
||||
local history = {}
|
||||
local image = paintutils.parseImage([[
|
||||
f f
|
||||
|
||||
f f
|
||||
ffff
|
||||
]])
|
||||
paintutils.drawImage(image, term.getCursorPos())
|
||||
textutils.coloredPrint(colors.yellow, "Welcome using the beta version of LeonOS!", colors.white)
|
||||
while true do
|
||||
term.setTextColor(colors.yellow)
|
||||
rc.write("$ "..shell.dir().." >>> ")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
-- LeonOS installer
|
||||
local INSTALLER_VERSION = "0.3.7 Beta 9"
|
||||
local INSTALLER_VERSION = "0.3.7 Beta 10"
|
||||
local DEFAULT_ROM_DIR = "/leonos"
|
||||
|
||||
print("Start loading LeonOS installer ("..INSTALLER_VERSION..")...")
|
||||
|
||||
Reference in New Issue
Block a user