mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
NEWS: mention ncplane_set_channels()
This commit is contained in:
parent
a859a3d652
commit
06e4b9f06b
4
NEWS.md
4
NEWS.md
@ -9,6 +9,10 @@ rearrangements of Notcurses.
|
||||
* `selector_options` has been renamed to `ncselector_options`, and
|
||||
`multiselector_options` has been renamed to `ncmultiselector_options`.
|
||||
This matches the other widget option struct's nomenclature.
|
||||
* `ncselector_create()` and `ncmultiselector_create()` now take a `struct
|
||||
notcurses*` instead of a `struct ncplane`, as they create their own planes.
|
||||
* `ncplane_set_channels()` and `ncplane_set_attr()` have been added to allow
|
||||
`ncplane` attributes to be set directly and in toto.
|
||||
|
||||
* 1.3.4 (2020-05-07)
|
||||
* `notcurses_lex_margins()` has been added to lex margins expressed in either
|
||||
|
@ -5,7 +5,7 @@ using namespace ncpp;
|
||||
|
||||
notcurses* Root::get_notcurses () const
|
||||
{
|
||||
notcurses *ret = *NotCurses::get_instance ();
|
||||
notcurses *ret = NotCurses::get_instance ();
|
||||
if (ret == nullptr)
|
||||
throw new invalid_state_error (ncpp_invalid_state_message);
|
||||
return ret;
|
||||
|
@ -18,7 +18,7 @@ auto main() -> int {
|
||||
opts.physcols = dimx / 2;
|
||||
opts.egc = strdup("░");
|
||||
//ncpp::Reader nr(nc, 0, 0, &opts);
|
||||
auto nr = ncreader_create(*nc, 2, 2, &opts);
|
||||
auto nr = ncreader_create(nc, 2, 2, &opts);
|
||||
if(nr == nullptr){
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user