开发者

Perl Term::Screen Enable insert character / delete character

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜