Version: 1.1.4.0
Build terminal emulation capabilities into your application with VT and Telnet controls.

Vt .NET Control (Terminal Emulation)

Use the Vt control to integrate terminal emulation capabilities into your Windows application or enable your ASP.NET Web application to communicate with backend UNIX servers for screen scraping. Features include:

  • Advanced screen scraping capability.
  • Support for graphic characters.
  • Supports multinational byte encoding to display international character sets.
  • Configurable scroll-back buffer.
  • Superior printing capabilities.
  • Built-in support for Key mapping.
  • Built in Telnet capability makes connectivity as easy as a single line of code.
  • Includes a custom VT font.
  • Includes support for VT320, VT220, VT100, VT52.
  • Full support for encoded Unicode characters.
  • C# and VB.NET sample projects included.
  • Integrates with all versions of Visual Studio and supports C#, VB.NET, ASP.NET, Delphi 8, C# Builder, and other .NET compliant development environments.

Looking for the ActiveX version of this control?

Interface

Public Constructors
Vt Overloaded. Initialize a new instance of the Vt class.
Public Properties
AcceptTabs Gets or sets whether to retain focus when the tab key is used.
Answer Gets or sets a string expression to be sent by the control whenever an ENQ is received.
AutoRepeat Gets or sets a value that determines whether depressed keys generate more than one character.
AutoWrap Gets or sets a value that indicates whether display text stops at the last column or wraps to the next line when a line contains more data than can fit on one row.
BackColor Gets or sets the background color for the control.
Bell Gets or sets a value that determines whether an audio bell is enabled.
BlinkIntensity Gets or sets the "brightness" of blinking text.
BoldColor Gets or sets the color of bold text.
BufferRows Gets or sets the number of rows stored in the scrollback buffer.
CursorKeys Gets or sets a value that determines whether the cursor keys send ANSI cursor control sequences (up, down, left, right) or application control sequences.
CursorStyle Gets or sets a value which indicates the cursor style.
FontEx Gets or sets the font used in the display of the control.
ForeColor Gets or sets the foreground color for the control.
Inverse Gets or sets a value that determines whether the foreground and background colors are switched.
KeyPad Gets or sets a value that determines whether the keypad sends ASCII characters or escape sequences.
LocalEcho Gets or sets a value which controls whether or not key presses are displayed on the Vt window.
Margin Gets or sets a Size object which determines the amount of "buffer" space around the Vt content on the window.
NationalCharSet Gets or sets the national character set for use in VT220 7-bit or VT320 7-bit emulation modes to display special characters that normally require 8-bit emulation mode.
NewLine Gets or sets the end-of-line character sequence to use.
NormalIntensity Gets or sets the "brightness" of normal text.
Print Gets or sets a PrintType specifying how printing should occur.
PrintPassthrough Gets or sets a value that determines if printing bypasses the normal printer drivers and prints directly to the printer port.
ScreenSize Gets or sets the screen size (number of columns and rows) used by the Vt window.
ScrollType Gets or sets a value that determines whether to use jump scrolling or smooth scrolling in the display screen.
SelectedText Gets the currently selected text.
SelectionLength Gets or sets the length of the number of characters selected.
SelectionStart Gets or sets the starting index of the characters currently selected.
StatusLine Gets or sets a value that indicates whether a 25th line is displayed as a status line when in VT320 7-bit or 8-bit mode.
Tabs Gets or sets a list of comma-delimited tab positions.
Telnet Gets the internal Telnet control to use for online communications.
TerminalType Gets or sets the terminal type to emulate.
TextLength Returns the length of the data in the Vt window.
UseDefaultPrinter Gets or sets a value which indicates whether the system default printer or a user-selected printer is used.
Public Methods
Capture Save subsequent display data to the provided stream.
Clear Clears the scrollback buffer and all rows in the display screen.
EnsureVisible Scrolls the screen to ensure the specified row is visible.
PrintCursorLine Sends a copy of the line the cursor is currently on to the printer.
PrintScreen Sends a copy of the display screen to the printer.
PrintSelectedText Sends a copy of the currently selected text to the printer.
Refresh Refreshes the screen using current properties.
Resize Resizes the screen using current properties.
ScrapeCells Overloaded. Retrieves information about the cells in the specified range.
ScrapeHtml Overloaded. Returns an HTML representation of the VT data.
ScrapeText Overloaded. Retrieves text (minus escape characters) from the Vt display.
SetDefaultFont Resets the font to its default value and applies the size change specified.
Write Overloaded. Displays the data contained within a byte array in the Vt window and interprets all escape sequences.
Public Events
AutoRepeatChanged Raised when the host sends an instruction which changes the value of the AutoRepeat property.
AutoWrapChanged Raised when the host sends an instruction which changes the value of the AutoWrap property.
CursorKeysChanged Raised when the host sends an instruction which changes the value of the CursorKeys property.
CursorPositionChanged Raised when the host sends an instruction which changes the value of the Vt.CursorPosition property.
InverseChanged Raised when the host sends an instruction which changes the value of the Inverse property.
KeyDown Raised when the user presses a key.
KeyPadChanged Raised when the host sends an instruction which changes the value of the KeyPad property.
KeyPress Raised when the user presses a key.
Line Raised when the cursor in the VT changes rows as the result of a new line.
LocalEchoChanged Raised when the host sends an instruction which changes the value of the LocalEcho property.
NewLineChanged Raised when the host sends an instruction which changes the value of the NewLine property.
PrintChanged Raised when the host sends an instruction which changes the value of the Print property.
ScreenSizeChanged Raised when the host sends an instruction which changes the value of the ScreenSize property.
ScrollTypeChanged Raised when the host sends an instruction which changes the value of the ScrollType property.
TabsChanged Raised when the host sends an instruction which changes the value of the Tabs property.
TerminalTypeChanged Raised when the host sends an instruction which changes the value of the TerminalType property.

Code Example

This example demonstrates storing a single file.

VB.NET Example
' Be sure to include "imports Dart.PowerTCP.Emulation" at the top of your class.
Dim f as System.IO.FileStream

Private Sub OpenTelnetConnection()
   ' Create a new filestream
   f = New System.IO.FileStream("C:\temp\log.txt", System.IO.FileMode.Create)

   ' Capture all data displayed on the Vt window
   vt1.Capture(f)

   ' Connect to a Telnet server
   vt1.Telnet.Connect("myserver")
End Sub

Private Void CloseTelnetConnection()
   ' Close the connection
   vt1.Telnet.Close()

   ' Close the filestream
   f.Close()
End Sub