// Close returns the terminal to its previous mode
Close returns the terminal to its previous mode
// Close returns the terminal to its previous mode
func (s *State) Close() error {
	signal.Stop(s.winch)
	if !s.inputRedirected {
		s.origMode.ApplyMode()
	}
	return nil
}
func ( s * State ) Close ( ) error { signal . Stop ( s . winch ) if ! s . inputRedirected { s . origMode . ApplyMode ( ) } return nil }
Close returns the terminal to its previous mode
Close returns the terminal to its previous mode