notcurses_directmode.3: mention cbreak mode

pull/966/head
nick black 4 years ago committed by Nick Black
parent 8f65211bf8
commit 602607d737

@ -77,8 +77,11 @@ ncdirect_init - minimal notcurses instances for styling text
**ncdirect_init** prepares the **FILE** provided as **fp** (which must
be attached to a terminal) for colorizing and styling. On success, a pointer to
a valid **struct ncdirect** is returned. **NULL** is returned on failure.
Before the process exits, **ncdirect_stop(3)** should be called to reset the
terminal and free up resources.
Before the process exits, **ncdirect_stop** should be called to reset the
terminal and free up resources. **ncdirect_init** places the terminal into
"cbreak" (also known as "rare") mode, disabling line-buffering and echo of
input. **ncdirect_stop** restores the terminal state as it was when the
corresponding **ncdirect_init** call was made.
An appropriate **terminfo(5)** entry must exist for the terminal. This entry is
usually selected using the value of the **TERM** environment variable (see

Loading…
Cancel
Save