NewLiner initializes a new *State, and sets the terminal into raw mode. To restore the terminal to its previous state, call State.Close().

Note if you are still using Go 1.0: NewLiner handles SIGWINCH, so it will leak a channel every time you call it. Therefore, it is recommened that you upgrade to a newer release of Go, or ensure that NewLiner is only called once.

NewLiner is referenced in 0 repositories