Microsoft KB Archive/31190

XENIX Runcob Resets the Terminal Characteristics

PSS ID Number: Q31190 Article last modified on 04-21-1993

2.10 2.20 XENIX

Summary: COBOL for XENIX uses ioctl calls to set the terminal with characteristics to satisfy COBOL screen input and output. Runcob initializes the terminal characteristics when it is first invoked. Runcob gets the current tty settings and modifies them to suit its needs. Runcob performs the following changes to the original values of the terminal characteristics: 1. It turns off RAW,CRMOD,ECHO,TANDEM 2. It turns on the following: a. It makes the break feature the same as the interrupt feature and enables parity checking, but ignores characters with parity error. b. It allows start/stop output control. c. It disables output translation. d. It resets ICANON,ECHO, so that echo no echo is done and you do not have to wait for characters. Another setting you can use is to wait 1/10 of a second to see if any character is available in the buffer.

Additional reference words: 2.10 2.20 Copyright Microsoft Corporation 1993.