我想运行这个命令
elinks /www/test.html | (then automatically press the right arrow key)在用elinks打开test.html后,我想让它自动按右箭头键。这有可能吗?我应该使用什么命令来做到这一点?
发布于 2015-01-06 08:40:20
VT100右箭头键转义序列是'\EOC',也许你可以使用它?
发布于 2015-01-06 09:30:07
已解决的
elinks -auto-submit 1 /www/test.html发布于 2015-01-06 23:09:44
用户不理解管道的作用。
command1 | command2将command1的输出发送到command2的输入。而不是相反。
因此,要将转义代码发送到链接:
printf '\E0C' | elinks /www/test.html https://stackoverflow.com/questions/27790310
复制相似问题