# MX\_WSET\_STATUS

> [HTML Version](mx_wset_status.htm)

_Reviewed and revised Ocril 2024_

**xcall MIAMEX, MX\_WSET\_STATUS, switches \{,opcode, ztver\}**

MX\_WSET\_STATUS (MIAMEX 13) is used by [WSET.LIT](wset_lit.md) in order to control operation of the screen tracking system, which enables the ability to save/restore screen areas.

**Parameters**

_switches_  ([Bitmap](bitmap.md), 16)  \[in/out\]

(combine)** **is a bit-mapped floating-point parameter whose values are as follows:

| **Symbol** | **Value** | **Description** |
|------|------|------|
| WSET\_NARROW | \&h0001  | 132 column mode disabled |
| WSET\_MONO | \&h0002 | Color disabled |
| WSET\_NOFLDATR | \&h0004 | Field attributes on mode devices disabled |
| WSET\_FLDEMU | \&h0008 | Force field emulation (Windows only) |
| WSET\_ZTERM | \&h00010 | ZTERM has been detected |
| WSET\_NOZTERM | \&h00020 | ZTERM was probed for but not detected |
| WSET\_DISABLE | \&h00040 | Screen area save/restore disabled |
| WSET\_TRKTOPSTS | \&h0080 | Include top status in save/restore |
| WSET\_NOWRAP | \&h0100 | No wrap |
| WSET\_NOSPACEATR | \&h0200 | Don't output extra space on field on/off attributes |
| WSET\_PAGEMODE | \&h0400 | PAGE mode active; see [PAGE.LIT](page_lit.md). |
| **Definition file: [ashell.def](ashell_def.md)** | | 



_opcode_  ([Unsigned Int](integer-unsigned.md))  \[in\]

0 (mxop\_get) to retrieve the current settings, or 1 (mxop\_set)to update the current settings and retrieve the original settings back into the _switches_ parameter. If not specified, 1 is assumed.

_ztver_  ([String](string.md), 10+)  \[in/out\]

will receive the ZTERM build number if applicable. Note that the format will be something like "ZV2.0.143a." (The ZV prefix is constant for builds 74+.)

**Comments**

MX\_WSET\_STATUS is used internally by MSBOXX, EZTYP, SWPSBR, PAGE.LIT and other A-Shell routines and commands.