home *** CD-ROM | disk | FTP | other *** search
- Program Async;
-
- {--------------------------------------------------------------------------}
- { This is a trivial little glass terminal program which simply shows a }
- { test I used of the ASYNC4U unit under Turbo 4.0 which appears to work. }
- { Scott Gurvey }
- {--------------------------------------------------------------------------}
-
- uses Dos, Crt, Async4U;
-
- var inchar, outchar : char;
-
- begin
- Async_Init;
- write(Async_Open(1,1200,'E',7,1));
- outchar:=' ';
-
- repeat
- if Async_Buffer_Check(inchar) then write(inchar);
- if keypressed then begin
- outchar:=Readkey;
- If outchar<>'!' then {Type an exclaimation point to exit}
- Async_send(outchar);
- end;
- until outchar='!';
-
- Async_Close;
-
- end.