Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 exptools; site ihuxe.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!ihuxe!chas From: chas@ihuxe.UUCP (Charles Lambert) Newsgroups: net.unix,net.sources.bugs Subject: CBREAK translation (HACKers, note) Message-ID: <1078@ihuxe.UUCP> Date: Wed, 20-Mar-85 19:36:52 EST Article-I.D.: ihuxe.1078 Posted: Wed Mar 20 19:36:52 1985 Date-Received: Fri, 22-Mar-85 01:31:05 EST Distribution: net Organization: AT&T Bell Laboratories Lines: 22 Xref: watmath net.unix:3988 net.sources.bugs:265 I noticed some discussion of the "Berkleyism" CBREAK, recently. I ran into this beastie whilst trying to port the infamous HACK sources onto System 5. Fortunately, with a copy of 4.2 BSD Programmers Manual to hand, I gleaned the following information: If the CBREAK flag is set, the terminal input behaves in "half- cooked" (as opposed to raw) mode. I understand this to mean that each character is normally returned as soon as it is typed (non- canonical, no line editing) BUT the BREAK and INTERRUPT signals are still processed. In the new arrangement of terminal controls, the matters of canonical input and signal interception are controlled by separate flags. Thus, the equivalent of CBREAK seems to be: (ISIG | ~ICANON) Haven't verified this yet, just a (hopefully helpful) suggestion. Charlie Lambert AT&T Bell Labs Naperville, IL.