mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
feat(list): 增强列表命令功能并改进显示格式
- 添加 `-l` 参数支持显示文件详细信息 - 改进文件列表的排序和分类显示 - 为不同文件类型添加颜色标识 - 添加统计信息和提示文本 - 修复重启命令别名从 "restart" 改为 "reboot" - 更新系统版本号显示为 LeonOS 1.0
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user