feat(list): 增强列表命令功能并改进显示格式

- 添加 `-l` 参数支持显示文件详细信息
- 改进文件列表的排序和分类显示
- 为不同文件类型添加颜色标识
- 添加统计信息和提示文本
- 修复重启命令别名从 "restart" 改为 "reboot"
- 更新系统版本号显示为 LeonOS 1.0
This commit is contained in:
2025-08-31 17:52:37 +08:00
parent ee22dd1138
commit acad8982aa
3 changed files with 127 additions and 19 deletions

View File

@@ -49,7 +49,8 @@ local aliases = {
rm = "delete",
rs = "redstone",
sh = "shell",
ps = "threads"
ps = "threads",
restart = "reboot"
}
for k, v in pairs(aliases) do
@@ -65,7 +66,7 @@ local history = {}
while true do
term.setTextColor(colors.yellow)
term.setBackgroundColor(colors.black)
rc.write(colors.yellow.."$"..shell.dir()..colors.green.." >>> ")
rc.write(textutils.coloredPrint(colors.yellow, "$"..shell.dir(), colors.green, " >>> "))
term.setTextColor(colors.white)
local text = term.read(nil, history, shell.complete)