Skip to content

od_get_user_8bit()

Reports whether the caller's connection supports eight-bit character data.

Synopsis

BOOL od_get_user_8bit(void);

Return value

Returns TRUE when the current caller can receive all eight bits of each character, or FALSE otherwise.

Description

The value begins false. During od_init(), OpenDoors derives it from framing fields in DORINFO, CHAIN.TXT, and GAP-style DOOR.SYS files when one of those formats is selected. The setting is independent of od_control.user_ansi: an eight-bit path does not necessarily interpret ANSI control sequences, and an ANSI terminal may be reached through a seven-bit path.

Applications may override the detected value with od_set_user_8bit(). The setting is exposed through functions rather than tODControl so this addition does not change the public structure's ABI.

This function does not initialize OpenDoors. Calling it after the session has completed follows the ordinary public-entry lifecycle rules and returns FALSE.

See also

od_set_user_8bit(), od_init(), od_control.user_ansi