mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
feat(ver.lua): 使用彩色文本显示版本信息
添加 textutils 模块并改用 coloredPrint 方法显示版本号,提升用户体验
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
-- LeonOS version command
|
||||
local rc = require("rc")
|
||||
local textutils = require("textutils")
|
||||
|
||||
-- Display LeonOS version
|
||||
print(rc.version())
|
||||
textutils.coloredPrint(colors.yellow, rc.version(), colors.white)
|
||||
|
||||
Reference in New Issue
Block a user