// SetMultiline sets linenoise to multiline or single line. // In multiline mode the user input will be wrapped to a new line when the length exceeds the amount of available rows in the terminal. func SetMultiline(ml bool) { // void linenoiseSetMultiLine(int ml); if ml { C.linenoiseSetMultiLine(1) } else { C.linenoiseSetMultiLine(0) } }
func SetMultiLine(yes bool) { if yes { C.linenoiseSetMultiLine(C.int(1)) } else { C.linenoiseSetMultiLine(C.int(0)) } return }