Jérémie Courrèges-Anglas:

> Here's the metamail diff.
> 
> I provide a knob to use tc[gs]etattr if desired.  I didn't use
> cfmakeraw() since it seems that this one hasn't made its way into POSIX.
> While here I replaced the gets() calls with fgets but if that's not
> desired I can remove those parts.

The fgets() chunks are fine.  (Hilariously, the code already checks
for '\n' even though gets() drops a final newline.)

For the tcsetattr() calls I'm not sure about the TCSA* constants.
Maybe use the same equivalents as ncurses term.h?

  TCSANOW   TCSETA
  TCSADRAIN TCSETAW
  TCSAFLUSH TCSETAF

Although I doubt that it matters.

-- 
Christian "naddy" Weisgerber                          na...@mips.inka.de

Reply via email to