Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site foros1.UUCP Path: utzoo!watmath!clyde!burl!hou3c!hocda!houxm!houxz!vax135!floyd!cmcl2!seismo!hao!hplabs!hpda!fortune!foros1!jr From: jr@foros1.UUCP (John Rogers) Newsgroups: net.micro.cpm Subject: Re: getchar() in c Message-ID: <182@foros1.UUCP> Date: Wed, 13-Jun-84 03:27:14 EDT Article-I.D.: foros1.182 Posted: Wed Jun 13 03:27:14 1984 Date-Received: Fri, 15-Jun-84 00:14:40 EDT References: <771@sri-arpa.UUCP> Organization: Fortune Systems, Redwood City, CA Lines: 28 Keywords: C/80 Hi. The way you do character-at-a-time I/O with C/80 is described in section 9.1 of the manual (assuming you're using version 3.1): "In doing I/O to CON:, C/80 normally uses line at a time mode. This is true whether CON: has been accessed explicitly by opening file "CON:", or as the default device for getchar and putchar. If you need to use character at a time console I/O, set Cmode to zero. (It is initially set to 1; other values produce undefined results.)" Elsewhere, they declare Cmode as: extern char Cmode; This is all, of course, different from the way UNIX does things (which I assume everyone else will post answers about, so I won't bother). The same section of the C/80 manual talks about a few characters which C/80 traps, so you should definitely read it. I hope this helps. If you have any more questions, just ask... I'm working on a new library for C/80 (isn't everyone?), so I'm getting familiar with it, whether I like it or not. See ya! -- JR (John Rogers) ...ihnp4!fortune!foros1!jr also fortune!jr and proper!jr