stdout converts NL to CR+NL

Hello,

thanks for the hint with the fflush.
Now I have the Problem, when I send a NL (0x0A) to the stdout that it converts it to CR+NL (0x0D 0x0A).
Where can I read and set the configs for the stdio such as the command tcgetattr and tcsetattr?
There is a flag to control this manner.

Frank

It only does that conversion with the stdio (putchar(), printf(), etc). If you use write() it doesn’t. That is standard on all OSes. You will find that Windows, DOS, and MacOS 9.x and lower do the same thing. Unix, MacOS 10.x and higher (which is unix), and Linux don’t translate.

-Erik