mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
feat: 添加计算器程序并更新版本至0.2.7
添加新的计算器程序calc.lua,包含完整的计算功能和界面 移除shell.lua中的错误窗口功能,改为直接输出错误信息 更新installer.lua和bios.lua中的版本号至0.2.7 添加calc命令的自动补全功能
This commit is contained in:
8
data/computercraft/lua/rom/completions/calc.lua
Normal file
8
data/computercraft/lua/rom/completions/calc.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
-- calc command completion
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("calc", function(shell, args)
|
||||
-- Calculator doesn't need parameters, return empty list
|
||||
return {}
|
||||
end)
|
||||
Reference in New Issue
Block a user