From: Albert Date: 2005-04-23T02:24:39+09:00 Subject: Re: Problems with popen3 nobu.nokada@softhome.net wrote in news:200504181101.j3IB1Guo029528 @sharui.nakada.niregi.kanuma.tochigi.jp: > Hi, > > At Mon, 18 Apr 2005 10:29:43 +0900, > Albert wrote in [ruby-talk:138624]: >> int main() { >> const char buf[128]; >> while (1) { >> printf("enter: "); > > This doesn't output a newline. > >> while line = gout.gets > > IO#gets reads till a newline. > Ahh, thanks. I also had to flush stdout from the c program more often.