mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
style(shell): 修改shell提示符的显示格式
移除textutils.coloredPrint调用,直接拼接字符串显示提示符,使代码更简洁
This commit is contained in:
@@ -66,7 +66,7 @@ local history = {}
|
||||
while true do
|
||||
term.setTextColor(colors.yellow)
|
||||
term.setBackgroundColor(colors.black)
|
||||
rc.write(textutils.coloredPrint(colors.yellow, "$"..shell.dir(), colors.green, " >>> "))
|
||||
rc.write("$ "..shell.dir().." >>> ")
|
||||
term.setTextColor(colors.white)
|
||||
|
||||
local text = term.read(nil, history, shell.complete)
|
||||
|
||||
Reference in New Issue
Block a user