修复 终端提示行颜色

This commit is contained in:
Suwings 2020-03-02 19:51:39 +08:00
parent 570989ea8b
commit e277343cdd

View File

@ -74,7 +74,7 @@
term.open(document.getElementById('WebTerminal'));
// 终端提示行
term.prompt = function (command) {
term.write('\x1B[1;1;32m' + '[' + term.TERM_TEXT_WHTILE
term.write('\x1B[1;1;33m' + '[' + term.TERM_TEXT_WHTILE
+ term.TERM_TEXT_GREEN + PAGE.serverName + '@' + 'app'
+ term.TERM_TEXT_YELLOW + ']' + term.TERM_TEXT_WHTILE
+ (MCSERVER.username.substr(0, 1) == '#' ? '# ' : '$ ')