.topic ctrl.terminal
.title Terminal
.toc 1 Special Controls
.toc 1 Terminal
.index Terminal
.index ANSI Terminal
.index VT100

.h1 Terminal

DVX Extension -- DVX Widget: ansiterm (ANSI terminal emulator)

A VT100/ANSI terminal emulator widget. Supports ANSI escape sequences, scrollback buffer, and serial communication. Default size is 80 columns by 25 rows.

.h2 Type-Specific Properties

.table
  Property     Type      Description
  ----------   -------   -------------------------------------------
  Cols         Integer   Number of character columns (read-only).
  Rows         Integer   Number of character rows (read-only).
  Scrollback   Integer   Number of scrollback lines (write-only).
.endtable

.index CommAttach
.index CommOpen

.h2 Type-Specific Methods

.table
  Method             Description
  ------             -----------
  Clear              Clear the terminal screen.
  Poll               Process pending comm data and update the display.
  Write text$        Write text (with ANSI escape processing) to the terminal.
.endtable

No default event.

.h2 Serial Communication

Use the comm.bas library to connect a Terminal to a serial link:

.code
Dim link As Integer
link = CommOpen(1, 115200)
CommHandshake link
CommAttach link, "Terminal1"
.endcode

See comm.bas for the full communications API.

.link ctrl.common.props Common Properties, Events, and Methods
