For most terminal emulations, a function key sends an escape or control sequence. That sequence can be sent to the host using CScript or TERM Script Language (TSL).
For example, the F1 key in Wyse50 emulation sends Ctrl-A, then the @ sign, then a carriage return. This is usually abbreviated ^A@^M. The script commands to send that sequence are:
CScript: te.xmit(“\001@\015”);
TSL: xmit “\001@\015”
As you can see, the control characters are replaced in the strings by their octal values, preceded by the backslash character \. The octal values for control characters can be found at http://www.robelle.com/. Keyboard references for several emulations are available on our website.
This entry was posted
on Tuesday, March 20th, 2007 at 2:03 pm and is filed under CScript, Keyboard, Scripting, TSL.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.