RVP writes: > On Sun, 30 Jul 2023, pouya+lists.net...@nohup.io wrote: > You'll have to turn off the NL -> CRNL output processing the kernel > does on your behalf (after all, this is still a "terminal" we're > talking about and not a simple pipe). Don't set the ONLCR bit in > the output-modes of the child pty.
Thank you. I thought I had done that, but it seemed not to take effect. However as you pointed out below it looks like the shell (NetBSD's default /bin/sh fwiw) was resetting this. > > Note that the shell you're running on the child-side also matters. > If that does any fancy line-editing using libedit or readline, say, > then that could change the ONLCR bit every time the shell has to > read input.