Hi,
On Sat, Jul 17, 2004 at 11:02:39PM -0400, willett wrote:
bug 2: After the assign/rewrite, the predeclared procedure writeln does just a LF, not a CR. To get normal output, one has to manually write the CR, e.g. write(chr(13)). I understand that this is happening because output is being treated as a text file, but either 'rewrite' should be smarter about recognizing standard output, or there should be some optional field of BindingType so the programmer can tell writeln to keep using.
This might be due to confused stdout tty settings. Normally, it's not the job of the application to add the CR, but the system's terminal driver will do it (if the OPOST ONLCR flags are set, see "stty -a").
As the tty settings apply to input and output (same tty), chances are good that setting the input to "RAW" is also messing with the output settings.
I don't understand the GPC environment well enough to offer a workaround, so this is only meant as "background information" to help people diagnose this.
gert