Entering Control Sequences

HostExplorer Programming

Entering Control Sequences

VT

The system treats the following in-line spaces as part of a sequence:

  • \a—Bell (alert)
  • \b—Backspace
  • \e—Escape
  • \f—Formfeed
  • \n—Newline
  • \r—Carriage Return
  • \t—Horizontal Tab
  • \v—Vertical Tab
  • \'—Single quotation mark
  • ""—Double quotation mark
  • \\—Backslash
  • \xhh—ASCII character in hexadecimal notation

When you type control sequences, you can use caret format. For example, to type a Ctrl-A value, you would type ^A. To type a caret, type the caret character twice, for example, (^^).

Example:

Sub Main

Dim HE as Object
Set HE = CreateObject( "HostExplorer" )

' Press tab key twice
HE.CurrentHost.Keys "\t\tTab Twice"

' Press Ctrl-C
HE.CurrentHost.Keys "^C"

End Sub