SetRawTerminal puts the output of the terminal connected to the stream into raw mode. On UNIX, this does nothing. On Windows, it disables LF -> CRLF/ translation. It is a no-op if Out is not a TTY, or if the "NORAW" environment variable is set to a non-empty value.
()
| 53 | // It is a no-op if Out is not a TTY, or if the "NORAW" environment variable is |
| 54 | // set to a non-empty value. |
| 55 | func (o *Out) SetRawTerminal() error { |
| 56 | return o.cs.setRawTerminal(term.SetRawTerminalOutput) |
| 57 | } |
| 58 | |
| 59 | // RestoreTerminal restores the terminal state if SetRawTerminal succeeded earlier. |
| 60 | func (o *Out) RestoreTerminal() { |
nothing calls this directly
no test coverage detected