Escape codes for function keys in a telnet session
Posted on 2011-03-16
I am connecting to a box via telnet that is running Operating System: SCO 5.07.
This telnet session is automated by a python script using the python TelnetLib library. I need to be able to send function key and arrow key presses programatically with python through the telnet session.
The key presses I need include the up down arrows, and basically F1 through F10. I have been unable to get this to work properly so my question is 2 fold.
1. How can I determine what I need to send for example an F3 key press?
2. In the python I do a telnet.write() what do I put in there to properly send the command across?