[MPlayer-dev-eng] PATCH: disable stdin buffer when reading from stdin

Arpi arpi at thot.banki.hu
Mon Apr 29 23:11:05 CEST 2002


Hi,

> > > > > According to setvbuf(3) setvbuf is in ANSI C.

if i understood right, it disables line buffering on teh given file, in teh
patch for stdin. it may work if it really disables tty buffering...
but it's ugly.

but note, that getch2_enable() does the same!
so, please check if getch2-enable() solves your problem.
imho it's safe to call even for stdin file reading. it just disabel ECHO and
line buffering.


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list