SetRawTerminal sets raw mode on the input terminal. It is a no-op if In is not a TTY, or if the "NORAW" environment variable is set to a non-empty value.
()
| 55 | // is not a TTY, or if the "NORAW" environment variable is set to a non-empty |
| 56 | // value. |
| 57 | func (i *In) SetRawTerminal() error { |
| 58 | return i.cs.setRawTerminal(term.SetRawTerminal) |
| 59 | } |
| 60 | |
| 61 | // RestoreTerminal restores the terminal state if SetRawTerminal succeeded earlier. |
| 62 | func (i *In) RestoreTerminal() { |
no test coverage detected