mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
merge in master changes
This commit is contained in:
parent
9675ed251e
commit
4347cd956a
2
NEWS.md
2
NEWS.md
@ -6,6 +6,8 @@ rearrangements of Notcurses.
|
||||
* Add `PREFIXFMT`, `BPREFIXFMT`, and `IPREFIXFMT` macros for `ncmetric()`.
|
||||
In order to properly use `printf(3)`'s field width capability, these
|
||||
macros must be used. This is necessary to support 'µ' (micro).
|
||||
* C++'s NotCurses constructor now passes a `nullptr` directly through to
|
||||
`notcurses_init()`, rather than replacing it with `stdout`.
|
||||
* Added `USE_STATIC` CMake option, defaulting to `ON`. If turned `OFF`,
|
||||
static libraries will not be built.
|
||||
|
||||
|
@ -40,7 +40,7 @@ NotCurses::NotCurses (const notcurses_options &nc_opts, FILE *fp)
|
||||
if (_instance != nullptr)
|
||||
throw new init_error ("There can be only one instance of the NotCurses class. Use NotCurses::get_instance() to access the existing instance.");
|
||||
|
||||
nc = notcurses_init (&nc_opts, fp == nullptr ? stdout : fp);
|
||||
nc = notcurses_init (&nc_opts, fp);
|
||||
if (nc == nullptr)
|
||||
throw new init_error ("notcurses failed to initialize");
|
||||
_instance = this;
|
||||
|
Loading…
x
Reference in New Issue
Block a user