Flowdock
method

nl

Importance_1
v1_9_3_125 - Show latest stable - 0 notes - Class: Curses
nl() public

Enable the underlying display device to translate the return key into newline on input, and whether it translates newline into return and line-feed on output (in either case, the call Curses.addch(ā€˜nā€™) does the equivalent of return and line feed on the virtual screen).

Initially, these translations do occur. If you disable them using Curses.nonl, curses will be able to make better use of the line-feed capability, resulting in faster cursor motion. Also, curses will then be able to detect the return key.

Show source
Register or log in to add new notes.