Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: utzoo!decvax!bellcore!ulysses!ucbvax!cisunx.UUCP!gu044150%pitt From: gu044150%pitt@cisunx.UUCP (elliot m) Newsgroups: mod.computers.vax Subject: Re: VAX C problem (?) Message-ID: <8607071721.AA18409@cisunx> Date: Mon, 7-Jul-86 13:21:25 EDT Article-I.D.: cisunx.8607071721.AA18409 Posted: Mon Jul 7 13:21:25 1986 Date-Received: Wed, 9-Jul-86 07:30:00 EDT References: <8607031156.AA07330@ucbvax.Berkeley.EDU> Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Mike Elliot Organization: Univ. of Pittsburgh, Comp & Info Sys Lines: 21 Approved: info-vax@sri-kl.arpa In article <8607031156.AA07330@ucbvax.Berkeley.EDU> MHICKEY@UDCVM.BITNET writes: > > We recently got VAX-C ver 2.2 and I've been busy porting programs >from UNIX/DOS. When I was working with the CURSES package, I found that >getch() wasn't breaking on a character. Instead, it would block until >a RETURN was hit. I then tried the getchar() function in the standard >library and, lo and behold, it reacted the same way. > I haven't worked with curses that much but it seems to me that even when you do curses on UNIX you have to throw your terminal into cbreak mode to get a character without hitting a . I believe the curses routine which does this is CRMODE. Unfortunately VMS ignores the CRMODE routine because VMS doesn't have a cbreak mode. The only way I have been able to get around this is to use the SMG routines. Mike cadre!pitt!cisunx!gu044150