// Cleanup() frees internal memory and restores terminal // attributes. This function should be called when program execution // stops before the return of a String() call, so as not to leave the // terminal in a corrupted state. func Cleanup() { C.rl_free_line_state() C.rl_cleanup_after_signal() }
func FreeLine() { C.rl_free_line_state() }