Toggle() action

From The x3270 Wiki

Allows various run-time resources (settings) to be displayed and modified.

A variant of Toggle() is the Set() action.

Parameters

If no parameters are specified, the names and values of all run-time resources are returned, one per line.

If one parameter is specified (without a = and a value), the value of a single Boolean resource is inverted.

name
Name of resource to invert

If two parameters are specified, the value of a resource is changed to the specified value. The resource does not need to be a Boolean type.

name
Name of resource to change
value
New value

A single parameter can also be specified as name=value.

Examples

Display all run-time resources.

Toggle()

Invert one resource.

Toggle(monoCase)

Change one resource.

Toggle(monoCase,true)
Toggle(monoCase=true)