How can I identify and handle control characters and arrow keys in Perl?

时间秒杀一切 提交于 2019-12-06 01:18:03

Unfortunately, the generic Term::ReadLine interface doesn't include customizable completion features. You have to pick a particular readline implementation for that.

Term::ReadLine::Gnu, Term::ReadLine::Perl, and Term::ReadLine::Zoid are all capable of performing custom completion. Term::ReadLine::Gnu is probably the best documented. Term::ReadLine::Perl is virtually undocumented, and I have no experience with Term::ReadLine::Zoid.

msw

I think you'd be best served by Term::Readline.

sganesh

I got one Perl module to solve my requirement fully. that is Term::ShellUI.

Thanks for all your inputs.

And If you have any other solution is always welcome.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!