6.6.23. format

The format command sets the default format to be used for displaying data in the CLI system view or, if issued with no parameters, reports the current display format.

The shorthand form of the format command is fmt. See also, importformat and listformat.

Syntax

fmt [format_name[ control_string]]

where:

format_name

Defines the format to be used, in any of the following forms:

#n

Where n is the index number of the format as shown in the last displayed format list (see listformat).

RDIName

As shown in the last displayed format list.

ShortName

As shown in the last displayed format list, or on the Format tab of the CLI Properties dialog.

control_string

Defines any associated control string required by the specified format. For example, with a Q-format as the first parameter, a printf control string as the second parameter defines how values are displayed. (Q-format is currently the only supplied format that can take a further control string.)

Examples

fmt #3

Sets format number 3 as the default for displays in the CLI system view.

fmt Q3.29 %12.6f

Interprets data in Q3.29 format and displays the values in 12.6f format.

fmt 0x%4x

Uses printf with 0x%4x as its control string.

Copyright © 1999-2006 ARM Limited. All rights reserved.ARM DUI 0066G
Non-Confidential