Programming with Reflection

image\rwnprg32.gif AfterTerminalKey event


Syntax Private Sub Session_AfterTerminalKey(ByVal Key As Long)



This event is triggered immediately after Reflection transmits a terminal keystroke to the host.


Key Argument type: Enumeration
A terminal key constant that identifies the terminal keystroke that was sent to the host. For a list of terminal key constants, open the Reflection Type library in the Visual Basic Object Browser and look under TerminalKeys. You can use the recorder to determine which constant is associated with a particular keystroke, or use the Reflection Keyboard Setup dialog box. When you click on a key in the terminal keyboard, you'll see an identifier, such as VtF8 or HPF2, at the bottom of the dialog box. The terminal key constant is this identifier preceded by "rc" and followed by "Key". For example in VT emulation, the F8 key is identified in the keyboard setup dialog box as VtF8, and is represented by the constant rcVtF8Key. To determine the numeric equivalent for a terminal key constant, select the constant in the Object Browser list and look in the details pane.

 Note: The Key argument is passed to the event procedure by value. This means that changes you make to Key are only relevant within the event procedure itself; they have no subsequent effect on Reflection.


· Event procedures must be created in the code module for the Reflection Session object (ThisSession).


image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command