pub fn set_newline(flag: bool) -> Result<(), NCurseswWinError>
Expand description

Control whether the NCurses translates the return key into newline on input,

This determines wether NCurses translates newline into return and line-feed on output (in either case, the call addch(‘\n’) does the equivalent of return and line feed on the virtual screen). Initially, these translations do occur. If you disable then NCurses will be able to make better use of the line-feed capability, resulting in faster cursor motion. Also, NCurses will then be able to detect the return key.