On Tuesday 14 April 2009 20:13:00 Tobias Rehbein wrote:

> I'm having a little trouble solving a specific problem in C. I want to
> write a filter which reads data from stdin. After reading the user should
> be able to interact with the program via stdin.

Just open(2) /dev/tty. If tty is invalid, then you don't have to expect a user 
either.
-- 
Mel
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to