Gert Doering wrote:
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.
Indeed this seems to be the problem. I'm short of time now, and I don't know a quick solution. Maybe you'll have to mess with termios yourself after all. More perhaps in 2-3 weeks, sorry ...
Frank