Logo ProcessKit API Reference

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

Auto

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`.

Cr

Full Usage: Cr

A carriage return (`\r`) — what a terminal sends for Enter.

CrLf

Full Usage: CrLf

A carriage return + line feed pair (`\r\n`).

Lf

Full Usage: Lf

A line feed (`\n`).

Instance members

Instance member Description

this.IsAuto

Full Usage: this.IsAuto

Returns: bool
Returns: bool

this.IsCr

Full Usage: this.IsCr

Returns: bool
Returns: bool

this.IsCrLf

Full Usage: this.IsCrLf

Returns: bool
Returns: bool

this.IsLf

Full Usage: this.IsLf

Returns: bool
Returns: bool

Type something to start searching.