Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: 4.2BSD / System V ioctl questions Message-ID: <6349@brl-smoke.ARPA> Date: Thu, 27-Aug-87 15:48:13 EDT Article-I.D.: brl-smok.6349 Posted: Thu Aug 27 15:48:13 1987 Date-Received: Sat, 29-Aug-87 10:31:30 EDT References: <299@rruxa.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 16 Xref: mnetor comp.unix.questions:3760 comp.unix.wizards:3927 In article <299@rruxa.UUCP> jpage@rruxa.UUCP (J Page) writes: > 1. how in System V can CBREAK / ~ECHO, be emulated ???? Refer to TERMIO(7) (annoyingly in the Adminstrator's Reference Manual instead of the PRM in many UNIX System V documentation sets). You need to figure out what CBREAK mode is supposed to be. Typically, disable ICANON, keep ISIG enabled, and set c_cc[VMIN] to 1 and c_cc[VTIME] to 0. To disable echo, clear all four ECHO* flags. > 2. are there (stty and gtty)-like calls available in System V. The above operations are done via ioctl() using the TCSETA or TCSETAW command codes as described in TERMIO(7). Many older UNIX System V implementations also support old-style gtty()/stty(), which are similar to those on 4BSD, but different in detail (in particular, there is no CBREAK bit). You should avoid using gtty()/stty().