From 7a86d872bb5b4c8983d9a0e2af27a7f581bd15e1 Mon Sep 17 00:00:00 2001 From: Leonmmcoset Date: Mon, 1 Sep 2025 16:34:09 +0800 Subject: [PATCH] =?UTF-8?q?feat(ver.lua):=20=E4=BD=BF=E7=94=A8=E5=BD=A9?= =?UTF-8?q?=E8=89=B2=E6=96=87=E6=9C=AC=E6=98=BE=E7=A4=BA=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加 textutils 模块并改用 coloredPrint 方法显示版本号,提升用户体验 --- data/computercraft/lua/rom/programs/ver.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/computercraft/lua/rom/programs/ver.lua b/data/computercraft/lua/rom/programs/ver.lua index 14ce6ce..fecf753 100644 --- a/data/computercraft/lua/rom/programs/ver.lua +++ b/data/computercraft/lua/rom/programs/ver.lua @@ -1,5 +1,6 @@ -- LeonOS version command local rc = require("rc") +local textutils = require("textutils") -- Display LeonOS version -print(rc.version()) \ No newline at end of file +textutils.coloredPrint(colors.yellow, rc.version(), colors.white)