使用 Perl 模块 Net::Telnet,如何将箭头键发送到 telnet 会话,以便与用户按下键盘上的向下键相同?
use Net::Telnet;
my $t = new Net::Telnet();
my $down_key=?; #How do you send a down key in a telnet session?
t->print($down_key);
此VT102 代码列表表明光标键代码如下:
Up: Esc [ A
033 133 101
Down: Esc [ B
033 133 102
Right: Esc [ C
033 133 103
Left: Esc [ D
033 133 104
我将如何在 telnet 中发送这些?这些代码是否与在键盘上按下的箭头键相同?