mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/sky22333/ansible-ui
synced 2026-09-20 08:03:57 +08:00
优化终端连接提示
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user