VT510 Video Terminal Programmer Information

SM—Set Mode

This control function has two formats. You use the ANSI format to set one or more ANSI modes. You use the DEC format to set one or more DEC modes. You cannot set ANSI and DEC modes with the same SM sequence.

Setting DEC Modes

CSI
9/11
?
3/15
Pd
3/n
;
3/11
...
...
Pd
3/n
h
6/8

Parameters

Pd
indicates a DEC mode to set. Table 5–8 lists the Pd values for DEC modes. You can use more than one Pd value in a sequence.

Examples

DEC Modes

The following sequence sets (Hebrew) keyboard mapping (DECHEBM) and Hebrew encoding mode (DECHEM):

CSI ? 34; 36 h

34 indicates (Hebrew) keyboard mapping.
36 indicates Hebrew encoding mode.

Programming Tip
Applications can use the SM and RM functions to restore any number of VT510 modes to a desired state. See the Report Mode (DECRPM) section in this chapter for details.