r.net/npm/xterm@5.3.0/lib/xterm.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/xterm-addon-fit@0.8.0/lib/xterm-addon-fit.js"></script>
    <script>
        let terminal = null;
        let websocket = null;
        let fitAddon = null;
        let isConnected = false;
        const wsUrl = '{{.WSUrl}}';

        // 初始化终端 - 简化配置
        function initTerminal() {
            terminal = new Terminal({
                cursorBlink: true,
                fontSize: 14,
