开发者

Perl Term::Screen Enable insert character / delete character

开发者 https://www.devze.com 2023-01-10 09:53 出处:网络
The Perl module Term::Screen has a method for inserting a character and deleting a character.Both of these methods have an accompanying method to check if the interface allows for such actions [ic_exi

The Perl module Term::Screen has a method for inserting a character and deleting a character. Both of these methods have an accompanying method to check if the interface allows for such actions [ic_exists() and dc_exists()]. 开发者_JS百科 I'm running this script through a ssh session and the ic_exists and dc_exists are returning 0, not available. What do I need to do to enable the insert character and delete character for this module?


Make sure that the TERM in your ssh environment is set to something that supports those functions (and is compatible with your terminal).

Try adding

print "$ENV{TERM}\n";

to your script to see what terminal it thinks it's talking to.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号