Distinct offers Network Monitor, the ONLY natural language Protocol Analyzer, ONC RPC for C++, .NET and Java, and IntelliTerm, the fastest Terminal Emulator for TN3270, TN5250 and VT420 on the market.

Distinct VIT: VT220: VtAction

   Products   Downloads   Sales   Support   About us
  VIT



        
 

Summary

Set up terminal, color, font, keyboard or printer and list, save, modify or delete configurations.

Description

The VtAction property controls the emulation features of the VT220 ActiveX control. The following values can be assigned to the VtAction property.

Value Meaning
VT_LIST_CONFIGURATION List all saved configurations.
VT_MODIFY_CONFIGURATION Modify a saved configuration.
VT_DELETE_CONFIGURATION Delete a configuration.
VT_SAVE_CONFIGURATION Save a configuration.
VT_CONFIGURE_KEYBOARD Configure keyboard mappings.
VT_CONFIGURE_TERMINAL Configure terminal settings.
VT_CONFIGURE_COLOR Set background and foreground colors.
VT_SET_CUSTOM_FONT Select a custom font.
VT_SET_VTFONT Set the terminal emulation font.
VT_SAVE_SETTINGS Save the terminal settings.
VT_COPY_CLIPBOARD Copy highlighted text into buffer.
VT_PASTE_CLIPBOARD Paste text in clipboard.
VT_CLEAR_CLIPBOARD Clear text in clipboard.
VT_CAPTURE_SCREEN Capture screen data into a file.
VT_CAPTURE_DATA Toggle to start and stop data capture.
VT_PRINTER_SELECT Select default printer.
VT_PRINTER_FONT Select printer fonts.
VT_TRANSPARENT Transparent printer mode.
VT_CAPTURE_SCREEN_FILE Capture screen data to CaptureFile.
VT_CAPTURE_DATA_FILE Toggle to start and stop data capture to CaptureFile.

The current VT220 terminal settings (for example, inverse video) can be changed by setting the VtAction property to VT_CONFIGURE_TERMINAL. To map the keys on the keyboard, set the VtAction property to VT_CONFIGURE_KEYBOARD. The foreground, background and bold colors of the VT220 terminal can be changed by setting the VtAction property to VT_CONFIGURE_COLOR. To select a custom font, set the VtAction property to VT_SET_CUSTOM_FONT. These actions will cause the ActiveX control to bring up dialog boxes, which allow the user to select new settings.

To select the type of font to be used for VT220 emulation, set the CurrentFont property to the appropriate value and then set the VtAction property to VT_SET_VTFONT. To save the current state of the VT220 terminal emulation window, such as font, color, terminal settings and keyboard mappings, set the VtAction property to VT_SAVE_SETTINGS.

Some of the actions can be invoked before the VT220 terminal emulation window is initialized. The application can change the terminal configuration to be used before the initialization of the emulation window by setting the VtAction property to VT_MODIFY_CONFIGURATION. The ConfigurationName property must previously be set to a valid configuration name. A list of the names of all available configurations can be obtained by setting the VtAction property to VT_LIST_CONFIGURATION. The list of configuration names will be delivered to the application in one or more OnList events. To delete a configuration, set the ConfigurationName property to a valid configuration name and then set the VtAction property to VT_DELETE_CONFIGURATION. To save a configuration, set the ConfigurationName property to an existing or a new configuration name and then set the VtAction property to VT_SAVE_CONFIGURATION.

Clipboard activities, such as copy, paste and clear, can be performed with the VtAction property. Copying the selected text in the VT220 emulation window to the clipboard can be accomplished by setting the VtAction property to VT_COPY_CLIPBOARD. Before doing this, an application must make sure that this action can be performed by verifying that the CopyClipboard property is True. Pasting text contained in the clipboard to the VT220 emulation window is done by setting the VtAction property to VT_PASTE_CLIPBOARD. Before doing this, an application must make sure that this action can be performed by verifying that the PasteClipboard property is set to True. An application can clear the text contained in the clipboard by setting the VtAction property to VT_CLEAR_CLIPBOARD. This action is only legal if the ClearClipboard property is True.

To capture the data currently displayed on the screen of the VT220 emulation window to a disk file, set the VtAction property to VT_CAPTURE_SCREEN. Before doing this, an application must make sure that this action can be performed by verifying that the CaptureScreen property is True. To capture all incoming data to a disk file, set the VtAction property to VT_CAPTURE_DATA. This action is only legal if the CaptureData property is True. Capturing incoming data to a disk file is disabled by setting the VtAction property to VT_CAPTURE_DATA a second time. An application can check the value of the boolean InCaptureData property to determine if the VT220 ActiveX control is currently capturing incoming data to a disk file. Both the VT_CAPTURE_SCREEN and the VT_CAPTURE_DATA action will display a dialog box to obtain the name of the destination disk file from the user.

To capture the data currently displayed on the screen of the VT220 emulation window to a file specified by the CaptureFile property, set the VtAction property to VT_CAPTURE_SCREEN_FILE. Before doing this, an application must make sure that this action can be performed by verifying that the CaptureScreenFile property is True. To capture all incoming data to CaptureFile, set the VtAction property to VT_CAPTURE_DATA_FILE. This action is only legal if the CaptureDataFile property is True. Capturing incoming data to CaptureFile is disabled by setting the VtAction property to VT_CAPTURE_DATA_FILE a second time. An application can check the value of the boolean InCaptureDataFile property to determine if the VT220 ActiveX control is currently capturing incoming data to CaptureFile.

The VtAction property can also be used to configure the printer to be used with the VT220 ActiveX control. Setting the VtAction property to VT_PRINTER_SELECT will select the default printer to be used. The printer font can be selected by setting the VtAction property to VT_PRINTER_FONT and the selected printer font can be replaced with the default printer font by setting the VtAction property to VT_TRANSPARENT. This essentially sends all keyboard inputs to the printer. Setting VT_TRANSPARENT to the VtAction property a second time turns off the printing.

The ListConfig, ModifyConfig, DeleteConfig, SaveConfig, ConfigureKeyboard, ConfigureTerminal, ConfigureColor, CustomFont, VtFont, SaveTermSetting, Copy, Paste, Clear, ScreenCapture, DataCapture, SelectPrinter, PrinterFont and Transparent methods accomplish the same as the above actions. Please check the reference pages of these methods for more detailed information on their usage.

This property can only be set at run time after initializing the VT220 emulation window by setting the Action property to ACTION_INITIALIZE. There is no default value for this property.

Example

Vt220Client.VtAction = VT_COPY_CLIPBOARD



Browse FAQ

Related Products
Mail Objects

Recommended Add-On
Network Monitor,
Protocol Analyzer


Raves
"The night before I went on summer holiday we had to make some 'last minute' configuration changes to approx. 300 routers, a tedious job to do manually with telnet. We went along with MS Excel containing a list of IP-adresses to the routers, and the VIT telnet-component. One hour later the VBA-application (small is beautiful) was working, and after another hour all of our routers were updated with the new configuration. I just say a big "Thanks" to you all for a good sleep that night."
Eirik Brendholen, Ergo Integration AS

"We conducted a test session to compare the performance of similar products, and Distinct's product was better!" [more]
Dr. Shyam Sunder, Carnegie Mellon University

"Together with Distinct, we were able to offer our users an ideal soution to enabling them to connect to Yahoo! Pager, and to do so both quickly and reliably." [more]
Brian Park,
Producer of Yahoo! Pager, Yahoo! Inc.


  9/8/2008   Legal notices | PRIVACY Policy | Networking News |