Programming Guide



sm_iset

Changes the value of a global integer variable

#include <smglobs.h>
int sm_iset (int property, int newval);

property
Specifies the global variable to change with one of these constants:

Constant Value Meaning

I_INSMODE

0

Enter overtype mode.

1

Enter insert mode.

I_NOWSEL

0

LDB merge is on for sm_wselect.

1

LDB merge is off for sm_wselect, normally set to 0. A value of 1 is useful for a quick sm_wselect/ sm_wdeselect pair, for example, to update a realtime clock.

I_NODISP

0

Enable updating of display.

1

Disable updating of display, except for error messages.

I_NOMSG

0

Display error messages.

1

Don't display error messages.

newval
The new value to assign to property as shown in the previous table.

Returns

Description

Panther has a number of global parameters and settings. Use sm_iset to modify the current value of global integers. To get the value of a global integer, use sm_inquire.

If you want a process to run in the background, you can set both I_NODISP and I_NOMSG to 1.

Example

void insert_mode(int on_off);
{
sm_iset(I_INSMODE, on_off);
}

See Also

sm_inquire, sm_pinquire, sm_pset