优化终端连接提示

This commit is contained in:
NewName
2025-05-03 14:25:39 +08:00
parent 0eb0404629
commit 58256b9312

View File

@@ -112,7 +112,7 @@ function TerminalPage() {
socket.current.onopen = () => { socket.current.onopen = () => {
setIsConnected(true); setIsConnected(true);
setIsConnecting(false); setIsConnecting(false);
term.current?.write('\r\n\x1b[1;32m*** 连接成功 ***\x1b[0m\r\n'); term.current?.write('\r\n\x1b[1;32m 正在连接主机终端 \x1b[0m\r\n');
// Fit terminal on connect and send initial size // Fit terminal on connect and send initial size
fitAddon.current?.fit(); fitAddon.current?.fit();
sendResize(); sendResize();