RE: Problem piping stdout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Owen,

You probably want to set the terminal into unbuffered mode.

Google turned up...

http://cboard.cprogramming.com/archive/index.php/t-27714.html

Note:  your question is not a GCC question, it's a general Unix question.

Personally, for unbuffered interactive input at the terminal, I like to use ncurses 5.5 <http://www.gnu.org/software/ncurses/>.  The ncurses library handles putting the tty into the correct mode, and restoring back to the regular mode when finished.

If you find that your tty has gone all pear-shaped, here's the magic command to restore it to sanity:
stty sane

HTH,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux