NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cannot disable output processing in pseudo-terminal (between openpty(3) parent and child)



RVP writes:
> On Sun, 30 Jul 2023, pouya+lists.netbsd%nohup.io@localhost 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.


Home | Main Index | Thread Index | Old Index