[net.lang.c] VAX C problem

MHICKEY%UDCVM.BITNET@WISCVM.ARPA (Mike Hickey) (07/02/86)

    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.

    On every other system I've worked with, these functions "woke up" on
any character input whereas these act more like incremental gets().  Have
I missed something somewhere?  I borrowed the ttxxxx() functions from
Micro Emacs which perform character-breaking I/O but they won't work with
CURSES.


                        Thanks in advance,

                              Mike Hickey
                              Systems programmer
                              University of DC

   "Structured programmers DO it OD"

gwyn@BRL.ARPA (VLD/VMB) (07/03/86)

Any implementation of getchar() that does not require an entire
line to be typed before returning data from the terminal in the
default case is broken.  This behavior is permitted only in raw
(non-canonicalizing) mode, which is not supposed to be enabled by
default.  Sounds like VAX-C ver 2.2 is doing this right.