Csound Csound-dev Csound-tekno Search About

[Csnd] Question/request to the csound developers about Csound stdout buffering

Date2011-03-12 23:59
FromStéphane Rollandin
Subject[Csnd] Question/request to the csound developers about Csound stdout buffering
Hello,

Since version 5.12, on Windows, the output from Csound does not get 
displayed smoothly in Emacs. It is updated irregularly in large chunks 
and at times uncompletely. Previously it was updated line by line, 
exactly like within a terminal.

This may be related to what is described in section 7.3 of this piece of 
Emacs documentation relative to the Windows port:

http://www.gnu.org/software/emacs/windows/Sub_002dprocesses.html

Citing:
"The C runtime typically decides how to buffer output based upon whether 
stdout is bound to a handle to a console window or not. If bound to a 
console window, output is buffered line by line; if bound to a block 
device, such as a file, output is buffered block by block.

In a shell buffer, stdout is a pipe handle and so is buffered in blocks. 
If you would like the buffering behavior of your program to behave 
differently, the program itself is going to have to be changed; you can 
use setbuf and setvbuf to manipulate the buffering semantics.

Some programs handle this by having an explicit flag to control their 
buffering behaviour, typically -i for interactive."


If this is indeed the origin of the problem (a recent change in the 
csound output buffering mode), would it be possible to revert to the 
previous behavior, or else implement such an explicit flag ?

regards,

Stef


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"