fputs
Dan Nelson
dnelson at allantgroup.com
Wed May 26 10:13:31 PDT 2004
In the last episode (May 26), Richard Burnett-Godfree said:
> I am trying to port software currently running on hp-ux to freeBSD
> 4.9.
>
> In the code the software use fputs to output chars to the terminal.
>
> What seems to be happening is these are all buffered until the
> process terminates and then they all come out rather than being sent
> to the terminal during the program operation. Do I need to change an
> environment setting ?? Should I swap to printf ?? What is the syntax
> ??
>
> Regards
> Richard
>
> if (strcmp(term, "wy50") == 0 || strcmp(term, "wy60") == 0)
> {fputs ("\033z(", stdout);
...
> }
Try adding an fflush(stdout) at the end of that code block.
--
Dan Nelson
dnelson at allantgroup.com
More information about the freebsd-questions
mailing list