Mnemonics 

Mnemonic Categories

 

Mnemonics can be classified according to their use and the type of device they control. While there are exceptions where mnemonics can be redefined for use outside of their intended purpose, the following categories identify the standard mnemonics by their functionality as well as their names.

Category

Description

Behaviour

Mnemonics that are used to modify the behaviour of PxPlus specific to the channel on which they are defined.

Character Display

Mnemonics that are used only when sent to text-based CUI devices.

Character Printer

Mnemonics that are used only when sent to direct-to-output devices.

Definition

Mnemonics that contain a definition or provide information to be used by a device for performing specific operations.

Editing

Mnemonics that are used to control various editing operations in both text-based and GUI display environments.

GUI Display

Mnemonics that are used only in a graphical environment for output to the screen. See Note below.

GUI Printer

Mnemonics that are used only when sent to a graphical printer spooling system (i.e. *WINPRT*). See Note below.

Motion

Mnemonics that are used to direct cursor movement in both text-based and GUI display environments.

Note:
In Windows, the 'FILL', 'FONT', 'PEN' and 'PICTURE' mnemonics use Graphical Device Interface (GDI) resources/handles that are only released when the window they are in is dropped or cleared, or their 'IMAGE' group is deleted.

This table displays a list of mnemonics and indicates (with an X) the categories to which they belong:

Mnemonic

Category

Behaviour

Character Display

Character Printer

Definition

Editing

GUI Display

GUI Printer

Motion

'@@' Define Cursor Position Sequence

 

 

 

 

 

 

X

'*C' Automatic Output on CLOSE

 

 

 

X

 

 

 

 

'*H' Control Screen Colours

 

 

 

X

 

 

 

 

'*I' Input Conversion Table

 

 

 

X

 

 

 

 

'*O' Output Conversion Table

 

 

 

X

 

 

 

 

'*R' OS Command String

 

 

 

X

 

 

 

 

'*X' Program to Call on CLOSE

 

 

 

X

 

 

 

 

'+$' & '-$' For Internal Use Only

 

 

 

 

 

X

 

 

'+B' & '-B' Output Buffering On/Off

X

 

 

 

 

X

 

 

'+D' & '-D' Disabled Object Dim On/Off

X

 

 

 

 

X

 

 

'+E' & '-E' Multi-Line Enter as Tab

X

 

 

 

 

X

 

 

'+F' & '-F' Signal Change of Focus On/Off

X

 

 

 

 

X

 

 

'+I' & '-I' Implied Decimals On/Off

X

 

 

 

 

X

 

 

'+N' & '-N' Control Drop/List Box Write Error

X

 

 

 

 

X

 

 

'+P' & '-P' Define Mouse Movement

 

 

 

 

 

X

 

 

'+S' & '-S' Substitute Solid Lines On/Off

X

 

 

 

 

X

 

 

'+T' & '-T' Text Display On/Off

X

 

 

 

 

X

 

 

'+U' & '-U' Screen Refresh On/Off

X

 

 

 

 

X

 

 

'+V' & '-V' Control Row Highlighting

X

 

 

 

 

X

 

 

'+W' & '-W' Windows-Style Windows

X

 

 

 

 

X

 

 

'+X' & '-X' Windows 'X' Close Button

 

 

 

 

 

X

 

 

'+Z' & '-Z' Text Mode Like Windows

 

 

 

 

 

X

 

 

'!W' For Internal Use Only

X

 

 

 

 

 

 

 

'2D' Use 2D Controls

 

 

 

 

 

X

 

 

'3D' Use 3D Controls

 

 

 

 

 

X

 

 

'4D' Use 4D Controls

 

 

 

 

 

X

 

 

'AB' Abort (For Windows Spooler)

 

 

 

 

 

 

X

 

'ARC' Define/Draw Arc

 

 

 

 

 

X

X

 

'AT' Character Attribute Output Sequence

 

 

 

X

 

 

 

 

'B#' Background Colour

 

X

 

 

 

X

X

 

'BACKGR' or 'BK' Next Colour is Background

 

X

 

 

 

X

X

 

'BB' Begin Blinking

 

X

 

 

 

 

 

 

'BE' Begin Echoing

 

 

 

 

X

 

 

 

'BEEP' Simple Sound Effect

X

 

 

 

 

 

 

 

'BG' Begin Generating Error #29

X

 

 

 

 

 

 

 

'BI' Begin Input Transparency

X

 

 

 

X

 

 

 

'BJ' Join Box Intersections

 

X

 

 

 

X

 

 

'BLACK' & '_BLACK' Colour Text

 

X

X

 

 

X

X

 

'BLUE' & '_BLUE' Colour Text

 

X

X

 

 

X

X

 

'BM' Begin Output of Markup Files

X

 

 

 

 

 

 

 

'BO' Begin Output Transparency

X

 

 

 

 

 

 

 

'BOX' Define/Draw a Box

 

X

 

 

 

X

 

 

'BR' Begin Reverse Video

 

X

X

 

 

X

X

 

'BS' Cursor Back One Space

 

 

 

 

 

 

 

X

'BT' Begin Type-Ahead Mode

X

 

 

 

X

 

 

 

'BU' Begin Underscoring

 

X

X

 

 

 X

X

 

'BW' Begin WrapAround

X

 

 

 

X

 

 

 

'BX' Define/Draw a Box

 

X

 

 

 

X

 

 

'C#' Control Cursor Display Mode

 

X

 

 

 

X

 

 

'CAPTION' Replace Caption for Window

 

 

 

 

 

X

 

 

'CE' Clear from Cursor to End of Screen

 

X

 

 

X

 

 

'CF' Clear Foreground Mode

 

X

 

 

X

 

 

'CH' Position Cursor at Home

 

 

 

 

 

 

 

X

'CI' Clear Input Type-Ahead Buffer

 

 

 

 

X

 

 

 

'CIRCLE' Define/Draw a Circle

 

 

 

 

 

X

X

 

'CL' Clear from Cursor to End of Line

 

X

 

 

X

 

 

'COLOUR' & '_COLOUR' User-Defined Colours

 

X

X

 

 

X

X

 

'CP' Condense Print for Screen

 

X

X

 

 

X

X

 

'CPI' Logical Characters per Inch

 

 

 

 

 

 

X

 

'CR' Carriage Return

 

 

 

 

 

 

 

X

'CS' Clear Screen

 

X

 

 

X

 

X

'CURSOR' Control Cursor, Mouse Pointer

 

 

 

 

X

 

 

'CYAN' & '_CYAN' Colour Text

 

X

X

 

 

X

X

 

'DC' Delete Character at Cursor

 

 

 

 

X

 

 

 

'DEFAULT' or 'DF' Define Default

 

X

 

 

 

X

X

 

'DIALOGUE' Define/Draw Dialogue Region

 

 

 

 

 

X

 

 

'DN' Move Cursor Down a Line

 

 

 

 

 

 

 

X

'DO' Delete Objects in Scroll Region

X

 

 

 

 

 

 

'DROP' or 'WD' Drop Identified Window

 

X

 

 

 

X

 

 

'EB' End Blinking Mode

 

X

 

 

 

 

 

 

'EE' End Echo Mode

 

 

 

 

X

 

 

 

'EG' End Generating Error #29

X

 

 

 

 

 

 

 

'EI' End Input Transparency

X

 

 

 

X

 

 

 

'EJ' End Box Joining

 

X

 

 

 

X

 

 

'EL' End VFU Load

X

 

X

 

X

 

 

 

'EM' End Output Markup Mode

X

 

 

 

 

 

 

 

'EO' End Output Transparency

X

 

 

 

 

 

 

 

'EP' Start Expanded Print

 

 

X

 

 

 

X

 

'ER' End Reverse Video

 

X

X

 

 

X

 

 

'ES' Send Escape

 

X

X

 

 

 

 

 

'ET' End Type Ahead

X

 

 

 

X

 

 

 

'EU' End Underscoring

 

X

X

 

 

X

X

 

'EW' End WrapAround

X

 

 

 

X

 

 

 

'F#' Foreground Colour

 

X

X

 

 

X

X

 

'F+' & 'F-' Control Background Filling

 

 

 

 

 

X

 

 

'FF' Form Feed

 

X

X

 

 

X

X

 

'FILL' Define Fill Style

 

 

 

 

 

X

X

 

'FL' Start Function Key Load

X

 

 

 

X

 

 

 

'FONT' Define/List Fonts

 

 

 

 

 

X

X

 

'FRAME' Define/Draw a Frame

 

 

 

 

 

X

 

 

'GD' Define Graphics Character Set

 

 

 

X

 

 

 

 

'GE' End Graphics Data

 

X

X

 

 

X

X

 

'GF' Default Font for Window Objects

 

 

 

 

 

X

 

 

'GOTO' or 'WG' Make Window Current

 

X

 

 

 

X

 

 

'GREEN' & '_GREEN' Colour Text

 

X

X

 

 

X

X

 

'GS' Start Graphics Data Transmission

 

X

X

 

 

X

 

 

'IC' Insert a Space at Cursor

X

 

 

 

X

 

 

 

'IMAGE' Define a Graphics Group

 

 

 

 

 

X

 

 

'JC' Justify Centre

 

 

 

 

 

X

X

 

'JD' Justify Decimal-Aligned

 

 

 

 

 

X

X

 

'JL' Left Justify Text

 

 

 

 

 

X

X

 

'JN' Right Justify for Numeric

 

 

 

 

 

X

X

 

'JR' Right Justify Text

 

 

 

 

 

X

X

 

'JS' Left Justify String

 

 

 

 

 

X

X

 

'L6' Set to 6 LPI

 

 

X

 

 

 

X

 

'L8' Set to 8 LPI

 

 

X

 

 

 

X

 

'LC' Mixed-Case User Input

X

 

 

 

X

 

 

 

'LD' Delete Current Line

 

 

 

 

X

 

 

 

'LF' Line Feed (Advance Line)

 

X

X

 

 

X

X

'LI' Insert Line

 

 

 

 

X

 

 

 

'LINE' Define/Draw a Line

 

 

 

 

 

X

X

 

'LM' Set Landscape Mode

 

 

 

 

 

 

X

 

'LPI' Logical Lines/Inch

 

 

 

 

 

 

X

 

'LT' Move Left One Column

 

 

 

 

 

 

 

X

'MAGENTA' & '_MAGENTA' Colour Text

 

X

X

 

 

X

X

 

'MAXSIZE' & 'MINSIZE' Window Resize User Limit

 

 

 

 

 

X

 

 

'ME' Begin Edit Mode

X

 

 

 

X

 

 

 

'MESSAGE' Define Message Bar Text

 

 

 

 

 

X

 

 

'MN' End Edit Mode

X

 

 

 

X

 

 

 

'MODE' Set Attributes and Colour

 

X

X

 

 

X

 

 

'MOVE' or 'WM' Relocate Current Window

 

X

 

 

 

X

 

 

'MP' Parallel Printer Mode

 

 

X

 

 

 

X

 

'MS' Serial Printer Mode

 

 

 

 

 

 

X

 

'NI' Next Input Numeric

 

 

 

 

X

 

 

 

'OFFSET' Offset for *WINPRT*

 

 

 

 

 

 

X

 

'OPTION' On-the-Fly Setting

X

 

 

 

 

 

 

 

'PE' Auxiliary Port Off

 

 

X

 

 

 

 

 

'PEN' Define Pen Style

 

 

 

 

 

X

X

 

'PICTURE' Define/Draw Picture

 

 

 

 

 

X

X

 

'PIE' Define/Draw Pie Slice

 

 

 

 

 

X

X

 

'PM' Set Portrait Mode

 

 

 

 

 

 

X

 

'POLYGON' Define/Draw a Polygon

 

 

 

 

 

X

X

 

'POP' or 'WR' Restore Previous Window

 

X

 

 

 

X

 

 

'PS' Auxiliary Port On

 

 

X

 

 

 

 

 

'PUSH' or 'WC' Save/Copy Current Window

 

X

 

 

 

X

 

 

'RA' Restore Saved Attributes

 

X

X

 

 

 

 

 

'RB' Ring Bell

 

 

 

 

X

 

 

 

'RC' Return Cursor Address

 

 

 

 

X

 

 

 

'RECTANGLE' Draw a Rectangle

 

 

 

 

 

X

X

 

'RED' & '_RED' Colour Text

 

X

X

 

 

X

X

 

'RL' Return Line Contents

 

 

 

 

X

 

 

 

'RM' Reset to Default Mode

X

 

 

 

 

 

 

 

'RP' Terminal Read to End

 

 

 

 

X

 

 

 

'RS' Restore Screen

 

X

 

 

X

 

 

 

'RT' Move Right One Column

 

 

 

 

 

 

 

X

'S#' Slew to Channel

 

 

X

 

 

 

X

 

'SA' Save Attributes

 

X

X

 

 

 

 

 

'SB' Set Mode to Background

 

X

 

 

 

 

 

 

'SCROLL' Define/Control Scroll Region

 

X

 

 

X

X

 

 

'SE' & 'SD' Scroll Enable/Disable

 

X

 

 

X

X

 

 

'SF' Set Mode to Foreground

 

X

 

 

 

 

 

 

'SHOW' Control Window Display

 

 

 

 

 

X

 

 

'SIZE' Control Visual Size of Window

 

 

 

 

 

X

 

 

'SL' Start VFU Load

 

 

X

 

 

 

X

 

'SN' Native Screen Mode

X

 

 

 

 

 

 

 

'SP' Standard Print

 

X

X

 

 

X

X

 

'SR' Scroll Reset

 

X

 

 

 

X

 

 

'SWAP' or 'WS' Swap Windows on Stack

 

X

 

 

 

X

 

 

'SX' Set Extended Screen Mode

X

 

 

 

 

 

 

 

'TEXT' Draw Text

 

 

 

 

 

X

X

 

'TEXTWDW' Create Text Window

 

X

 

 

 

X

 

 

'TR' Terminal Read from Start

 

 

 

 

X

 

 

 

'TW' Transmit Windows as String

 

 

 

 

X

 

 

 

'UC' Convert Input to Uppercase

X

 

 

 

X

 

 

 

'UP' Move Up One Line

 

 

 

 

 

 

 

X

'VT' Slew to S6, Vertical Tab

 

 

X

 

 

 

X

 

'WHITE' & '_WHITE' Colour Text

 

X

X

 

 

X

X

 

'WINDOW' or 'WA' Define/Draw Window

 

X

 

 

 

X

 

 

'WP' Wide Printer

 

 

X

 

 

 

 

 

'WRAP' WrapAround On/Off

X

 

 

 

X

 

 

 

'WX' Windows Definition Sequence

 

 

 

X

 

 

 

 

'XP' Line Mode

 

X

 

 

 

 

 

 

'YELLOW' & '_YELLOW' Colour Text

 

X

X

 

 

X

X

 

'ZX' Return Attributes as per BBx®

X

 

 

 

 

 

 

 

 

Note:
All colour mnemonics (i.e. 'BLACK', 'BLUE', 'CYAN', 'GREEN', 'MAGENTA', 'RED', 'WHITE' and 'YELLOW') are supported on character printers, assuming that the required escape sequence was defined when setting up the printer. While most character printers only print with black ink, it is possible to print to an HP ink jet printer as a character device.

 

 

 

BBx® is a registered trademark of BASIS International Ltd.