From: Matthew Woehlke
> [...]
> +#include <termios.h> /* FIXME probably not portable? */
> [...]
This would certainly be a problem on VMS, which has its own terminal
handling scheme, and no support for termios.
Rather than installing a load of UNIX-specific ("probably not
portable") code into the middle of an otherwise fairly portable code
segment, why not create a couple of functions, like, say,
terminal_echo_disable() and terminal_chars_restore(), segregate your
implementation of them into some UNIX-specific place, and let the rest
of us supply our own? Or, for a real adventure, you could look at some
considerably more portable program (like Info-ZIP [Un]Zip or Kermit),
and see how more experienced people have handled this problem, and then
do all the work yourself.
------------------------------------------------------------------------
Steven M. Schweda [EMAIL PROTECTED]
382 South Warwick Street (+1) 651-699-9818
Saint Paul MN 55105-2547