AI论坛 AI论坛 beta

antior 在 佬们,问下Expect脚本如何输入方向键呢? 中发帖

📌 📄 内容摘要: antior 在 佬们,问下Expect脚本如何输入方向键呢? 中发帖 我使用脚本 #!/usr/bin/expect -f # auto-select.exp spawn npm start expect "Select proxy source:" exp_send "Sending up arrow twice and enter\n" send "\x1B\[A\x1B\[A\r" # Simulate up arrow key # send "^[OA\033[A\r" # 将 `[` 转义 # Simulate up arrow key expect "Enter the path to your proxy.txt file" exp_send "Sending enter\n" send "\r" # Simulate up arrow key expect eof 结果报错 ====================...
────────── 链接信息 ──────────
🔗 论坛链接: linux.do
📎 访问地址: https://linux.do/t/topic/427691/1
─────────────────────────────
📢 来源:LINUX DO

你好啊,陌生人!

我的朋友,看起来你是新来的,如果想参与到讨论中,点击下面的按钮!

每日一言

AI论坛

帖子数 659811
评论数 8888
用户数 88888
在线用户 8888