This is really going to depend on the flavor of Unix you are running.
On my HP-UX (Hewlett-Packard Unix) I can simply cat to /dev/console,
and it works. Other Unixen have a function you can call within
a C program to write to the console.
Another solution to what you are trying to do may be to
simply write to a temporary file like /tmp/barf.
and then in a window do a tail -f /tmp/barf
to watch it.
Hope this helps,
David McLaughlin
--
Web: http://bert.cs.byu.edu/~dpm/homepage.html