See Also

Vt Members  | Dart.PowerTCP.Emulation Namespace

Requirements

Namespace: Dart.PowerTCP.Emulation

Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista

Assembly: Dart.PowerTCP.Emulation (in Dart.PowerTCP.Emulation.dll)

Language

Visual Basic

C#

C++

C++/CLI

Show All

See Also Requirements Languages PowerTCP Emulation for .NET

Vt Class

Dart.PowerTCP.Emulation Namespace : Vt Class

Represents a terminal emulator used to display VT formatted data.

For a list of all members of this type, see Vt members.

Object Model



Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         System.Windows.Forms.Control
            Dart.PowerTCP.Emulation.Vt

Syntax

[Visual Basic]
Public Class Vt    Inherits Control
[C#]
public class Vt : Control
[C++]
public __gc class Vt : public Control
[C++/CLI]
public ref class Vt : public Control

Remarks

Use the Vt component to process data received from a host application and targeted for a VT terminal. By streaming this data into a Vt component, you can either:

If you do not first process the data with a Vt component, you are left with a stream of data containing numerous escape codes. The Vt component provides terminal emulation as defined by Digital Equipment Corporation for their VT data terminals. It differs from other controls like TCP and Telnet since it is used for data display and formatting, not communications. VT52, VT100, VT220, and VT320 emulation is supported. Each emulation contains formatting rules (escape codes) for interpreting incoming data. For example, one sequence may dictate that the display screen be filled with spaces, while another directs that the cursor be moved to a specified location. DEC developed the VT escape codes for their VT terminals, which contained a screen, keyboard, printer port, and an RS-232 connection for connecting to the host. By performing this same functionality in software using high-speed LAN connectivity, the Vt component provides a faster display screen, flexible keyboard mapping, and printing to the Windows default printera big improvement over previous hardware devices.

Example

The following example demonstrates creating a simple VT application using the internal Telnet control. In addition, creating a diagnostic log using the Capture method is also demonstrated.

[Visual Basic] 

' 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

[C#] 


// Be sure to include "using Dart.PowerTCP.Emulation;" at the top of your class.

System.IO.FileStream  f = null;

private void 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");
}

private void CloseTelnetConnection()
{
  
// Close the connection
  
vt1.Telnet.Close();

  
// Close the filestream
  
f.Close();
}
                

Requirements

Namespace: Dart.PowerTCP.Emulation

Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista

Assembly: Dart.PowerTCP.Emulation (in Dart.PowerTCP.Emulation.dll)

See Also

Vt Members  | Dart.PowerTCP.Emulation Namespace

 

Send comments on this topic.

Documentation version 1.1.3.0.

© 2008 Dart Communications.  All rights reserved.