Identifying control characters in Perl
- by sganesh
Actually, I am doing one project. In that I want to implement the command line features as like in linux terminal.
And I saw this in ftp command also.
If I press tab I need to list the commands.
If I press control characters I need to get that characters based on that I will do some action.
And If I give any commands it should execute.
For this I tried with Term::ReadKey that is non canonical mode. But here I am facing more problems like,
If I press any control character or arrow I got three characters.
Ex: for up arrow I got ascii as 279165.
Can anyone help me out of this problem?
And I feel that there will be a better solution for this.
Thanks in Advance.