Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Telnet function keys

Status
Not open for further replies.

dmccollum

Programmer
Joined
Jul 7, 2006
Messages
1
I have a tcl expect script that is pretty simple.
It just emulates an operator entering keystrokes to an application via telnet C-VT100 terminal.

Most entries have been simple to do until I need to press the F10 key on a particular screen. Then later I will need to press the F7 key.

Following is a part of the script leading up to where I need to press F10.

Can someone tell me how to send a F10 key to the session.


expect {
timeout {notify_error "Timeout error in doDBMSJobs script"}
"\{"
}
send "x"

while {1} {
expect {
timeout {notify_error "Timeout error in doDBMSJobs script"}
"Download Raw Data or Custom Report?" {break}
}
}
send "RAW\r"
send {^\[\[21\~}

The last line above is the ^[21~ that I got when doing this manually. That I thought was the code for F10 key.

I have found that keysm for F10 is decimal 65479 0r hex 0xffc7.

How do I send that to the application?

Thanks for any asistance!
 
What if you send "\xffc7"?

_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top