# `Drafter.Prompt.Terminal.Piped`
[🔗](https://github.com/jaman/drafter/blob/v0.6.1/lib/drafter/prompt/terminal/piped.ex#L1)

Standard input and output when they are not a terminal a prompt can draw on.

Nothing is redrawn: `draw/2` shows nothing, `commit/2` and `print/2` write plain
text to standard output, and `next_event/2` always answers `:closed`. Prompts ask
their question on one line and read the answer as a line; see
`c:Drafter.Prompt.Component.parse_line/2`.

`newline` is `true` when standard input is not a terminal. A line break is then
written after each answer is read, since the one that ended the answer is not shown.

# `t`

```elixir
@type t() :: %Drafter.Prompt.Terminal.Piped{newline: boolean()}
```

# `open`

```elixir
@spec open() :: t()
```

A piped terminal for the calling process.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
