|
|
|
@ -1,16 +1,16 @@
|
|
|
|
|
% notcurses_directmode(3)
|
|
|
|
|
% ncdirect_init(3)
|
|
|
|
|
% nick black <nickblack@linux.com>
|
|
|
|
|
% v1.2.2
|
|
|
|
|
|
|
|
|
|
# NAME
|
|
|
|
|
|
|
|
|
|
notcurses_directmode - minimal notcurses instances for styling text
|
|
|
|
|
ncdirect_init - minimal notcurses instances for styling text
|
|
|
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
|
|
|
|
|
**#include <notcurses.h>**
|
|
|
|
|
|
|
|
|
|
**struct ncdirect* notcurses_directmode(const char *termtype, FILE* fp);**
|
|
|
|
|
**struct ncdirect* ncdirect_init(const char *termtype, FILE* fp);**
|
|
|
|
|
|
|
|
|
|
**int ncdirect_bg_rgb8(struct ncdirect* nc, unsigned r, unsigned g, unsigned b);**
|
|
|
|
|
|
|
|
|
@ -42,7 +42,7 @@ notcurses_directmode - minimal notcurses instances for styling text
|
|
|
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
|
|
**notcurses_directmode** prepares the **FILE** provided as **fp** (which must
|
|
|
|
|
**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
|
|
|
|
@ -67,9 +67,9 @@ be specified for either **y** or **x** to leave that axis unchanged.
|
|
|
|
|
|
|
|
|
|
# RETURN VALUES
|
|
|
|
|
|
|
|
|
|
**notcurses_directmode** returns **NULL** on failure. Otherwise, the return
|
|
|
|
|
value points to a valid **struct ncdirect**, which can be used until it is
|
|
|
|
|
provided to **ncdirect_stop**.
|
|
|
|
|
**ncdirect_init** returns **NULL** on failure. Otherwise, the return value
|
|
|
|
|
points to a valid **struct ncdirect**, which can be used until it is provided
|
|
|
|
|
to **ncdirect_stop**.
|
|
|
|
|
|
|
|
|
|
# SEE ALSO
|
|
|
|
|
|
|
|
|
|