ReadKey like Function in C

Fred Smith fredex at cg-atla.UUCP
Wed Aug 16 03:57:28 AEST 1989


In article <1677 at crdgw1.crd.ge.com> davidsen at crdos1.UUCP (bill davidsen) writes:
>
>  I agree that these should be part of the standard! Anyone who has
>written a (more or less) portable program knows the joy of setting raw
>mode one way for SysV, another for BSD, using raw read calls in CP/M and
>MS-DOS, a calling sys$read_raw$some_long_name in VMS. It gets worse as
>you go to TOPS, PRIMOS, etc.



------------------

Bill is right that the "diversity" of ways to do this is a real pain
in the (very low) back. However, the particular method required on
PRIMOS (one which he mentions) is rather trivial, especially when
compared to the nightmarish rigamarole one goes thru on VMS to do
anything!  On Primos one only has to call T1IN which returns a
single character from the user's login terminal. There is a complementary
service which will tell you if there is a character waiting in your
input buffer, but I don't happen to recall its name.

Fred



More information about the Comp.lang.c mailing list