Getchar w/wout echo
Richard A. O'Keefe
ok at quintus.uucp
Thu Aug 25 10:59:38 AEST 1988
In article <65474 at sun.uucp> swilson at sun.UUCP (Scott Wilson) writes:
>>Who _cares_ how much baggage comes with Curses?
>I care, other people care. Some of us are developing C programs
>on machines like the Macintosh where you are trying to fit your
>OS stuff, your C programming tools, and your C project onto two
>800K floppies. This is comp.lang.c, not comp.lang.c.on.a.big.machine.
>with.megabytes.of.disk.space.and.maybe.paging. Size is important.
>And curses is not universally available.
My word, how things have changed! Little wee IBM PCs running MS-DOS
are now "big.machines.with.megabytes.of.disk.space.and.maybe.paging"!
(I believe that there is a version of Curses for the Atari ST, too.)
If you are working on a Macintosh, POSIX features aren't going to help
you one tiny little bit either.
What in the world is wrong with taking the bits of the Curses *interface*
that you need, specifically the functions echo() and noecho(), and using
them in your code? Ok, in the Macintosh version of your program, you will
have to write a small Macintosh-specific file to implement them. Do
everyone a favour: post the sources to comp.sys.apple.mac or whatever it
is called. That's the way to produce a de facto standard, and that's how
we'll get echo control in the next version of ANSI C.
More information about the Comp.lang.c
mailing list