PtyLineEnding Type
What `PtySession.SendLineAsync` appends to the text it sends — the "Enter key" of an interactive session. A real terminal sends a carriage return when Enter is pressed, which is why `Auto` picks it for a `Command.Pty` run; a plain pipe has no line discipline to translate it, so `Auto` picks a line feed there instead. Override it when a particular child disagrees.
Union cases
| Union case |
Description
|
Full Usage:
Auto
|
`Cr` on a `Command.Pty` run, `Lf` otherwise — the default, and correct for both. A POSIX pty's line discipline maps the carriage return to a newline for the child (`ICRNL`, on by default) and Windows ConPTY maps it to a VK_RETURN key event, so a terminal child sees a completed line either way; a child reading a plain pipe sees a literal `\r` instead and would keep waiting, so a non-PTY run gets `\n`. |
Full Usage:
Cr
|
A carriage return (`\r`) — what a terminal sends for Enter. |
Full Usage:
CrLf
|
A carriage return + line feed pair (`\r\n`). |
Full Usage:
Lf
|
A line feed (`\n`). |
Instance members
| Instance member |
Description
|
Full Usage:
this.IsAuto
Returns: bool
|
|
Full Usage:
this.IsCr
Returns: bool
|
|
Full Usage:
this.IsCrLf
Returns: bool
|
|
Full Usage:
this.IsLf
Returns: bool
|
|
ProcessKit API Reference