%M - Control of Message Line

#### Search Results

Search

# %M - Control of Message Line

`%M` |  |  |  | `T` |  |
|  | `B` |
|  | [-]nn |
|  | `P` |
= |  | `BL` |
`GR`
`NE`
`PI`
`RE`
`TU`
`YE`

With this terminal command, you can control the position, the protection mode and the color of the Natural message line.

This terminal command is ignored in batch mode.

This terminal command also applies to Natural's `NEXT` (or `MORE`) line.

Application Programming Interface: `USR1005N`. See SYSEXT - Natural Application Programming Interfaces in the Utilities documentation.

This document covers the following topics:

- Message Line Positioning

- Message Line Protection

- Message Line Color

## Message Line Positioning

Command | Function
--- | ---
`%MT` | Causes the message line to be the top line of the screen.
`%MB` | Causes the message line to be the bottom line of the screen.
`%M` | Causes the current message line position to be switched from the top line to the bottom line of the screen (or vice versa), or from line `nn` to the bottom line.
`%Mnn` | Causes the message line to be placed on line `nn` of the screen.
`%M-nn` | Causes the message line to be placed on the `nn`th line from the bottom of the screen. If the line number `nn` or -`nn` is not within the current screen, the message line will not be displayed.

## Message Line Protection

Command | Function
--- | ---
`%MP` | Switches from protected to unprotected message line or vice versa.

## Message Line Color

Command | Function
--- | ---
`%M=color-code` | When a color screen is used, this terminal command causes the message line to be displayed in the specified color (for an explanation of color codes, see the session parameter `CD`).

See also Control of the Message Line - Terminal Command %M in the Programming Guide.

### On this page

- Message Line Positioning
- Message Line Protection
- Message Line Color