refactor(程序): 更新事件监听和多行字符串格式

将imageview.lua中的event.pull改为os.pullEvent
在time.lua中使用多行字符串语法改善帮助文本格式
This commit is contained in:
2025-09-02 14:54:37 +08:00
parent aa77b2208e
commit 055bd09311
3 changed files with 12 additions and 11 deletions

View File

@@ -2,7 +2,7 @@
local http = require("http")
local paintutils = require("paintutils")
local term = require("term")
local event = require("event")
local shell = require("shell")
-- 帮助信息函数
@@ -78,7 +78,7 @@ local function main(args)
-- 监听ESC键
while true do
local _, key = event.pull("key")
local _, key = os.pullEvent("key")
if key == 27 then -- ESC键
term.clear()
term.setCursorPos(1, 1)