TTY: Demonstrates Basic Microsoft(R) Windows(TM) Communication Functions

TTY demonstrates the Microsoft(R) Windows(TM) communication functions OpenComm, SetCommState, WriteComm, ReadComm, SetCommEventMask, GetCommEventMask, CloseComm, and the new Windows version 3.1 function EnableCommNotification.

TTY uses the WM_COMMNOTIFY message by either enabling the EV_RXFLAG event flag and the CN_EVENT notification, or by using CN_RECEIVE to receive trigger thresholds for detecting the characters received. The Windows version 3.1 COMM.DRV posts the WM_COMMNOTIFY message to the associated windows when the necessary events occur. TTY performs simple character translation and implements a screen buffer for use as the I/O window.

Use the Settings menu to change the port, baud rate, data bits, parity, stop bits, and handshaking options (RTS/CTS, DTR/DSR, and XON/XOFF). After setting these communication options, use the Action menu to connect or disconnect the TTY program.

TTY was built and tested under Microsoft Windows version 3.1.

{ewc navigate.dll, ewbutton, /Bcodeview /T"Click to open or copy files in the tty project." /C"samples}