Path: utzoo!attcan!uunet!husc6!think!ames!pasteur!ucbvax!A.CC.UMICH.EDU!rees From: rees@A.CC.UMICH.EDU (Jim Rees) Newsgroups: comp.sys.apollo Subject: Re: obtaining raw input from a telnet connection Message-ID: <8807251755.AA00254@a.cc.umich.edu> Date: 25 Jul 88 17:14:16 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: rees@caen.engin.umich.edu (Jim Rees) Organization: The Internet Lines: 25 I have an application that likes to take input from the keyboard one character at a time without waiting for a carriage return... I realize that I could probably accomplish this in the UNIX environment using the appropriate ioctl, but unfortunately my program was developed in the Aegis environment and I'm not quite ready to change it to UNIX (at least not until SR10 hits the streets.) You would really like to do this in a device-independent manner, so that your program doesn't have to find out what kind of a tty it has. The only supported way I know of to do this is with ioctl(). You don't have to "change it to Unix" to take advantage of ioctl(). Just make the ioctl call, passing in the ios stream id as the file descriptor. There isn't really an internal distinction between "aegis" programs and "unix" programs. (Well, except for case distinctions in file names). I often mix "aegis" system calls with "unix" system calls within the same program. If your program is written in pascal, you may find it easiest to write a little one-line C program to call ioctl(), and bind it in with your program. -------