终端控制转义序列:如何使用“\e[6n”捕获行和列?
我怎样才能捕捉变量中的行和列而不是打印出来(这里^[[12;1R
)?
#!/usr/bin/env perl
use warnings;
use 5.012;
print "\n" x 10;
say "\e[6n";
How could I catch the row and the column in variables instead of printing out (here ^[[12;1R
)?
#!/usr/bin/env perl
use warnings;
use 5.012;
print "\n" x 10;
say "\e[6n";
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我发现了这个:
I've found this:
抱歉,花了一段时间,我很久以前添加了此功能,然后忘记更新问题;)
Sorry it took a while, I added this feature ages ago then forgot to update the question ;)