Enter newline mode. flag If false, the effect is the same as calling nonl(). This mode translates the return key into newline on input, and translates newline into return and line-feed on output. Newline mode is initially on.
curses/nl
nl