�新连接';
                document.getElementById('connect-btn').onclick = connectConsole;
                if (terminal) {
                    terminal.writeln('\r\n\x1b[33m✗ 连接已断开\x1b[0m');
                }
            };

            websocket.onerror = function(error) {
                updateStatus('error', '连接错误');
                if (terminal) {
                    terminal.writeln('\r\n\x1b[31m✗ 连接错误\x1b[0m');
                }
            };

          