2020-03-25 08:06:38 +00:00
|
|
|
This document attempts to list user-visible changes and any major internal
|
2020-04-06 00:13:37 +00:00
|
|
|
rearrangements of Notcurses.
|
2020-03-25 08:06:38 +00:00
|
|
|
|
2021-07-04 11:01:50 +00:00
|
|
|
* 2.3.9 (not yet released)
|
|
|
|
* `notcurses_detected_terminal()` and `ncdirect_detected_terminal()` now
|
|
|
|
both return a heap-allocated string, which will contain the terminal
|
|
|
|
version if Notcurses was able to detect it. This result ought be free()d.
|
2021-07-04 15:15:45 +00:00
|
|
|
* Added `ncplane_moverel()`.
|
2021-07-06 03:41:01 +00:00
|
|
|
* Documented `ncplane_move_yx()` in `notcurses_plane.3`, and removed the
|
|
|
|
false comment that "passing -1 as a coordinate will hold that axis
|
|
|
|
constant" from `USGAE.md` and `notcurses.h`. This has never been true.
|
2021-07-07 09:54:47 +00:00
|
|
|
* Added `ncdirect_putegc()` to perform Unicode segmentation. It returns
|
|
|
|
the number of columns consumed, and makes available the number of bytes
|
|
|
|
used by the EGC.
|
2021-07-04 11:01:50 +00:00
|
|
|
|
2021-07-04 05:14:12 +00:00
|
|
|
* 2.3.8 (2021-07-04)
|
2021-06-30 21:44:54 +00:00
|
|
|
* Marked all capability functions `__attribute__ ((pure))`. If you were
|
|
|
|
calling `notcurses_check_pixel_support()` before in order to enable pixel
|
|
|
|
blitting (unnecessary since 2.3.5), you might get compiler warnings about
|
|
|
|
statements without effects. Just remove the call if so.
|
|
|
|
* Fixed bugs in `ncvisual_blitset_geom()` and `ncvisual_render()` when using
|
|
|
|
`NCVISUAL_OPTION_CHILDPLANE` in certain configurations.
|
2021-07-03 04:09:28 +00:00
|
|
|
* Fixed some serious bugs in the OpenImageIO backend.
|
2021-07-03 23:25:42 +00:00
|
|
|
* Disabled Synchronized Update Mode for Kitty in response to upstream bugs.
|
2021-06-30 21:44:54 +00:00
|
|
|
|
2021-06-29 10:58:56 +00:00
|
|
|
* 2.3.7 (2021-06-29)
|
2021-06-26 05:14:13 +00:00
|
|
|
* Deprecated `NCSTYLE_REVERSE` and `NCSTYLE_DIM`. The remainder are safe,
|
|
|
|
and I added back `NCSTYLE_BLINK` according to popular demand.
|
2021-06-24 11:13:16 +00:00
|
|
|
* Added `NCOPTION_PRESERVE_CURSOR`. If used, the standard plane's virtual
|
|
|
|
cursor will be initialized to match its position at startup, rather than
|
|
|
|
starting in the upper-left corner. Together with a scrolling standard
|
|
|
|
plane and inhibition of the alternate screen, this allows rendered mode
|
|
|
|
to easily be used for scrolling shell environment programs.
|
2021-06-29 04:46:28 +00:00
|
|
|
* Control characters from C0 and C1 are now rejected when loading `nccell`s
|
|
|
|
or writing to a plane (except for newline, when using a scrolling plane).
|
|
|
|
This was always intended, but never enforced. Horizontal tabs might be
|
|
|
|
enabled anew sometime in the future.
|
2021-06-27 00:21:20 +00:00
|
|
|
* `ncls` now defaults to `NCBLIT_PIXEL`.
|
2021-06-27 11:28:49 +00:00
|
|
|
* Added `ncplane_scrolling_p()` to retrieve a plane's scrolling status.
|
2021-06-29 10:58:56 +00:00
|
|
|
* Greatly expanded `notcurses-info`.
|
2021-06-24 06:13:57 +00:00
|
|
|
|
2021-06-24 02:35:19 +00:00
|
|
|
* 2.3.6 (2021-06-23)
|
|
|
|
* Fixed (harmless) warning with `-Wformat-security`.
|
2021-06-24 01:46:08 +00:00
|
|
|
* Remove `NCSTYLE_{INVIS,BLINK,STANDOUT}` with extreme prejudice. They
|
|
|
|
remain defined for now, but will be removed for ABI3.
|
|
|
|
* Deprecated `notcurses_debug_caps()`, which no longer generates output.
|
|
|
|
Hey, I explicitly commented that its output was "subject to change".
|
2021-06-24 01:23:12 +00:00
|
|
|
|
2021-06-23 17:07:42 +00:00
|
|
|
* 2.3.5 (2021-06-23)
|
2021-06-13 21:11:06 +00:00
|
|
|
* Happy day! The terminal interrogation routines in the initialization code
|
|
|
|
have been completely revamped. The first outcome of this is that Sixel
|
|
|
|
parameters are now opportunistically read at startup, and thus there is
|
|
|
|
no longer any need to call `notcurses_check_pixel_support()` before
|
|
|
|
using `NCBLIT_PIXEL`. If it's there, it'll be used; if not, it'll degrade
|
2021-06-15 15:52:10 +00:00
|
|
|
or fail. The new routines rely on the terminal answering the Send Device
|
|
|
|
Attributes escape; if it does not, Notcurses may refuse to start, or even
|
|
|
|
hang. Please report a bug if you run into this.
|
2021-06-14 22:56:38 +00:00
|
|
|
It is still necessary to supply a correct `TERM` environment variable,
|
|
|
|
because this is used to index into the `terminfo(5)` database, which
|
|
|
|
seeds most common escapes. The extended capabilities of some modern
|
|
|
|
terminals, however, will be retrieved independently of `TERM`; they'll
|
|
|
|
be made available for use if supported by the connected terminal, and
|
|
|
|
others will not, even if your `TERM` variable implies they ought.
|
2021-06-16 02:24:48 +00:00
|
|
|
* `ncplane_as_rgba()`/`ncvisual_from_plane()` now support `NCBLIT_BRAILLE`.
|
2021-06-10 07:02:30 +00:00
|
|
|
* `CELL_ALPHA_*` macros are now `NCALPHA_*`. The former will remain
|
|
|
|
`#define`d until ABI3.
|
2021-06-18 18:24:26 +00:00
|
|
|
* Filled out the complete set of `ncdirect_can*()` capability functions,
|
|
|
|
which now match the `notcurses_can*()` API. Added
|
|
|
|
`ncdirect_canget_cursor()` to check if the cursor can be located.
|
2021-06-19 04:02:50 +00:00
|
|
|
* `ncdirect_dim_y()` and `ncdirect_dim_x()` no longer accept a
|
|
|
|
`const ncdirect*`, since they update the term parameters. Sorry!
|
2021-06-19 07:16:39 +00:00
|
|
|
* Added `NCDIRECT_OPTION_VERBOSE` and `NCDIRECT_OPTION_VERY_VERBOSE`.
|
|
|
|
They map to `NCLOGLEVEL_WARNING` and `NCLOGLEVEL_TRACE`, respectively.
|
2021-06-19 08:36:59 +00:00
|
|
|
* New functions `ncvisual_from_rgb_packed()` and `ncvisual_from_rgb_loose()`.
|
2021-06-20 12:25:07 +00:00
|
|
|
* New stat `sprixelbytes`.
|
2021-06-22 05:17:55 +00:00
|
|
|
* Added new functions `ncpile_render_to_buffer()` and
|
|
|
|
`ncpile_render_to_file()`. Rewrote `notcurses_render_to_buffer()` and
|
|
|
|
`notcurses_render_to_file()` as trivial wrappers around these functions,
|
|
|
|
and deprecated the latter. They will be removed in ABI3.
|
2021-06-22 18:30:42 +00:00
|
|
|
* Added support for application-synchronized updates, and a new stat.
|
2021-06-10 07:02:30 +00:00
|
|
|
|
2021-06-12 21:27:28 +00:00
|
|
|
* 2.3.4 (2021-06-12)
|
2021-06-08 06:02:09 +00:00
|
|
|
* Added the flag `NCVISUAL_OPTION_NOINTERPOLATE` to use non-interpolative
|
|
|
|
scaling in `ncvisual_render()`. `ncvisual_render()` without a multimedia
|
|
|
|
engine will now use this method for any requested scaling (previously,
|
|
|
|
scaling was not performed without a linked multimedia backend).
|
2021-06-08 08:32:13 +00:00
|
|
|
* `NCVISUAL_OPTION_BLEND` used with `NCBLIT_PIXEL` will now, when the Kitty
|
|
|
|
graphics protocol is in use, cut the alpha of each pixel in half.
|
2021-06-08 20:32:03 +00:00
|
|
|
* `ncvisual_inflate()` has been rewritten as a wrapper around the new
|
|
|
|
function `ncvisual_resize_noninterpolative()`, and deprecated. It will be
|
|
|
|
removed for ABI3. Godspeed, `ncvisual_inflate()`; we hardly knew ye.
|
2021-06-13 14:13:25 +00:00
|
|
|
* `ncdirectf_render()` has been changed to accept a `ncvisual_options`,
|
2021-06-09 03:37:15 +00:00
|
|
|
replacing and extending its four final arguments. Sorry about the breakage
|
2021-06-13 14:13:25 +00:00
|
|
|
here, but `ncdirectf_render()` was introduced pretty recently (2.3.1).
|
|
|
|
As a result, `ncdirectf_render()` and `ncdirect_stream()` now honor
|
2021-06-10 01:52:42 +00:00
|
|
|
`NCVISUAL_OPTION_BLEND` and `NCVISUAL_OPTION_NOINTERPOLATE`. All of this
|
|
|
|
also applies to `ncdirect_geomf()`.
|
2021-06-09 07:21:39 +00:00
|
|
|
* `ncplayer` now accepts `-n` to force non-interpolative scaling.
|
2021-06-10 01:52:42 +00:00
|
|
|
* A new binary is installed, `notcurses-info`. It prints information about
|
|
|
|
the terminal environment in which it runs. More information is available
|
|
|
|
from its man page, `notcurses-info(1)`.
|
2021-06-10 21:11:33 +00:00
|
|
|
* Added `ncdirect_light_box()`, `ncdirect_heavy_box()`,
|
2021-06-12 21:27:28 +00:00
|
|
|
`ncdirect_ascii_box()`, `nccells_light_box()`, and `nccells_heavy_box()`.
|
|
|
|
Publicized `nccells_ascii_box()`. All are `static inline`.
|
2021-06-11 20:56:35 +00:00
|
|
|
* A bug was fixed in `ncplane_move_yx()`: root planes were being moved
|
|
|
|
relatively instead of absolutely. This was never the intended behavior.
|
2021-06-12 00:09:25 +00:00
|
|
|
* It used to be possible to pass `NULL` as the second parameter of
|
|
|
|
`ncplane_mergedown_simple()`, and have the standard plane be used as
|
|
|
|
the destination. This is no longer supported, since the source plane
|
|
|
|
could be in another pile. An error will instead be returned.
|
2021-06-12 14:24:09 +00:00
|
|
|
* Fixed a bug in `ncdirect_box()` where default/palette-indexed colors
|
|
|
|
weren't properly used on the top and bottom borders.
|
2021-06-12 17:10:16 +00:00
|
|
|
* Added `notcurses_detected_terminal()` and `ncdirect_detected_terminal()`.
|
2021-06-06 03:33:24 +00:00
|
|
|
|
2021-06-03 06:29:13 +00:00
|
|
|
* 2.3.2 (2021-06-03)
|
2021-05-23 00:51:35 +00:00
|
|
|
* Fixed a bug affecting certain scalings of `ncvisual` objects created from
|
|
|
|
memory (e.g. `ncvisual_from_rgba()`).
|
2021-06-01 00:07:10 +00:00
|
|
|
* Fixed a bug where setting a style in direct mode reset color. Shocked that
|
|
|
|
such a bug could exist for so long, ugh.
|
2021-06-03 05:49:28 +00:00
|
|
|
* Fixed memory leaks in the `ffmpeg` and `none` implementations of the
|
|
|
|
`ncvisual` API, and also the `libnotcurses-core` implementation.
|
2021-05-22 00:06:36 +00:00
|
|
|
* `ncinput_nomod_p()` has been added. This function returns `true` if and
|
|
|
|
only if its `ncinput` argument has no modifiers active.
|
2021-05-23 03:07:11 +00:00
|
|
|
* Added `notcurses_cursor_yx()` to get the current location of the cursor.
|
2021-05-26 10:38:51 +00:00
|
|
|
* Added `ncdirect_supported_styles()`.
|
2021-06-01 06:25:11 +00:00
|
|
|
* `ncplane_at_yx()` now properly integrates the plane's base cell when
|
|
|
|
appropriate, and thus represents the cell as it will be used during
|
2021-06-03 07:05:31 +00:00
|
|
|
rendering. This change cascades, affecting e.g. `ncplane_contents()`.
|
2021-06-01 06:25:11 +00:00
|
|
|
* `ncplane_at_yx()` now returns the EGC when called on any column of a
|
|
|
|
wide glyph. `ncplane_at_yx_cell()` continues to duplicate the exact
|
|
|
|
`nccell`, and can thus continue to be used to distinguish between primary
|
|
|
|
and secondary columns of a wide glyph. Likewise, `notcurses_at_yx()`
|
|
|
|
now returns the EGC when called on any column of a wide glyph.
|
|
|
|
* Sadly, `ncplane_contents()` no longer accepts a `const ncplane*`, since it
|
|
|
|
might write temporaries to the plane's EGCpool during operation.
|
|
|
|
* Added `ncdirect_styles()`, to retrieve the current styling.
|
2021-06-01 21:41:14 +00:00
|
|
|
* In previous versions of Notcurses, a rendered-mode context
|
|
|
|
(`struct notcurses`) and a direct-mode context (`struct ncdirect`) could
|
|
|
|
be open at the same time. This was never intended, and is no longer
|
|
|
|
possible.
|
2021-05-22 00:06:36 +00:00
|
|
|
|
2021-05-18 08:03:27 +00:00
|
|
|
* 2.3.1 (2021-05-18)
|
2021-05-14 05:44:41 +00:00
|
|
|
* Sprixels no longer interact with their associated plane's framebuffer. This
|
|
|
|
means plane contents are maintainted across blitting a sprixel and then
|
|
|
|
independently destroying that sprixel (i.e. without destroying the plane).
|
|
|
|
While the sprixel is bound to the plane, these contents are ignored (save
|
|
|
|
that they will be reported by `ncplane_at_yx()`). Since no method currently
|
|
|
|
exists to destroy a sprixel without destroying its plane, I don't think
|
|
|
|
this will impact anyone.
|
2021-05-14 10:02:06 +00:00
|
|
|
* 8bpc RGB is unconditionally enabled if the terminal emulator is determined
|
|
|
|
to be Kitty, Alacritty, or foot; there is no longer any need to export
|
|
|
|
`COLORTERM` on these terminals.
|
2021-05-16 15:43:09 +00:00
|
|
|
* Fixed bad bug in `ncvisual_resize()` when growing an image. This isn't
|
|
|
|
relevant to enlarging an `ncvisual` via scaling, but only when persistently
|
|
|
|
growing one with `ncvisual_resize()`.
|
2021-05-18 07:28:50 +00:00
|
|
|
* Direct mode image rendering now honors the `maxy` and `maxx` parameters,
|
|
|
|
which specify the maximum number of cell rows and columns, respectively,
|
|
|
|
to use for the render. They were previously ignored, contrary to
|
|
|
|
documentation. It is now an error to pass a negative number for either of
|
|
|
|
these values. Use 0 to specify "as much space as is necessary".
|
2021-05-16 15:43:09 +00:00
|
|
|
* Added `ncdirectf_from_file()`, `ncdirectf_geom()`, and `ncdirectf_render()`,
|
|
|
|
with the net result that you can now (efficiently) get media geometry in
|
|
|
|
direct mode. If you don't care about media geometry, you can keep using
|
|
|
|
`ncdirect_render_frame()` and/or `ncdirect_render_image()`, and Godspeed.
|
|
|
|
Oh yes, and `ncdirectf_free()`. Rien n'est simple, mais tout est facile....
|
2021-05-12 17:07:23 +00:00
|
|
|
|
2021-05-09 22:54:22 +00:00
|
|
|
* 2.3.0 (2021-05-09) **"Triumph"**
|
|
|
|
* No user-visible changes.
|
|
|
|
|
2021-05-08 22:25:13 +00:00
|
|
|
* 2.2.11 (2021-05-08)
|
2021-05-08 19:39:52 +00:00
|
|
|
* `notcurses-core.pc` is now generated with a `Requires.private` line
|
|
|
|
matching the local system's source of Terminfo. This ought resolve
|
|
|
|
static linking on systems with libtinfo embedded into libncurses.
|
2021-05-07 21:34:02 +00:00
|
|
|
* Added `ncblit_rgb_loose()` and `ncblit_rgb_packed()` helpers for blitting
|
|
|
|
32bpp RGBx and 24bpp RGB.
|
2021-05-08 19:58:23 +00:00
|
|
|
* Added `ncplane_erase_region()` to initialize all `nccell`s within a
|
|
|
|
region of a plane.
|
2021-05-07 21:34:02 +00:00
|
|
|
|
2021-05-05 09:18:57 +00:00
|
|
|
* 2.2.10 (2021-05-05)
|
2021-05-04 17:55:36 +00:00
|
|
|
* Added `NCVISUAL_OPTION_CHILDPLANE` to interpret the `n` field of
|
|
|
|
`ncvisual_options` as a parent plane.
|
2021-05-05 09:18:57 +00:00
|
|
|
* Reimplemented `ncdirect_cursor_down()` using vertical tabs instead
|
|
|
|
of the `cud` capability, so that it now scrolls when on the last line.
|
|
|
|
Thanks to Daniel Eklöf for this idea, of which I was totally ignorant!
|
|
|
|
* Fixed several embarrassing `assert()`s which I'd not had exposed due
|
|
|
|
to misuse of CMake.
|
|
|
|
* Fixed a state machine bug that caused sprixels to sometimes not be
|
|
|
|
properly redisplayed following a rebuild.
|
2021-05-04 17:55:36 +00:00
|
|
|
|
2021-05-03 06:51:04 +00:00
|
|
|
* 2.2.9 (2021-05-03)
|
2021-04-21 15:42:59 +00:00
|
|
|
* Added two new stats, `sprixelemissions` and `sprixelelisions`.
|
2021-04-22 04:10:55 +00:00
|
|
|
* Added `notcurses_canhalfblock()` and `notcurses_canquadrant()`.
|
2021-04-22 08:11:06 +00:00
|
|
|
* The `palette256` type has been renamed `ncpalette`, and all functions
|
|
|
|
prefixed with `palette256_` have been deprecated in favor of versions
|
|
|
|
prefixed with `ncpalette_`, which the former now wrap. The old versions
|
|
|
|
will be removed in ABI3.
|
2021-04-27 18:10:41 +00:00
|
|
|
* All functions prefixed with `channel_` have been deprecated in favor of
|
|
|
|
versions prefixed with `ncchannel_`, which the former now wrap. The old
|
|
|
|
versions will be removed in ABI3.
|
2021-04-29 05:18:37 +00:00
|
|
|
* All functions prefixed with `channels_` have been deprecated in favor of
|
|
|
|
versions prefixed with `ncchannels_`, which the former now wrap. The old
|
|
|
|
versions will be removed in ABI3.
|
2021-04-27 20:08:54 +00:00
|
|
|
* `SIGINT`, `SIGQUIT`, and `SIGTERM` are now masked for the calling thread
|
|
|
|
when writing starts, and unmasked when writing has ended. This prevents
|
|
|
|
the writing thread from handling these signals in the middle of a write,
|
|
|
|
which could otherwise leave the terminal locked up (if it resulted in
|
|
|
|
aborting an escape sequence). The signal will be delivered when unblocked.
|
|
|
|
For this to work properly, other threads ought also have these signals
|
|
|
|
blocked. `notcurses_getc()` and friends thus no longer drop these signals
|
|
|
|
from the provided `sigset_t`; they are instead added if not present.
|
2021-05-02 00:04:46 +00:00
|
|
|
* Added `nccell_width()` to get the column length of an `nccell`.
|
2021-04-21 15:42:59 +00:00
|
|
|
|
2021-04-18 17:24:24 +00:00
|
|
|
* 2.2.8 (2021-04-18)
|
2021-04-18 04:16:46 +00:00
|
|
|
* All remaining functions prefixed with `cell_` or `cells_` have been
|
|
|
|
deprecated in favor of versions prefixed with `nccell_` or `nccell_`,
|
|
|
|
respectively, which the former now wrap. The old versions will be
|
|
|
|
removed in ABI3.
|
|
|
|
* `ncvisual_inflate()` has been added to perform non-interpolative
|
|
|
|
enlarging. It is intended for use with pixel art.
|
2021-04-14 10:42:14 +00:00
|
|
|
|
2021-04-12 09:01:58 +00:00
|
|
|
* 2.2.6 (2021-04-12)
|
2021-04-08 08:12:01 +00:00
|
|
|
* `ncplane_rgba()` has been deprecated in favor of the new function
|
|
|
|
`ncplane_as_rgba()`, which the former now wraps. It will be removed
|
|
|
|
in ABI3. The new function can report the synthesized pixel geometry.
|
2021-04-10 08:04:02 +00:00
|
|
|
* `ncvisual_geom()` has been deprecated in favor of the new function
|
|
|
|
`ncvisual_blitter_geom()`, which the former now wraps. It will be
|
|
|
|
removed in ABI3. The new function can report the chosen blitter.
|
2021-04-10 04:34:38 +00:00
|
|
|
* `ncplane_pixelgeom()` has been added, allowing callers to determine the
|
|
|
|
size of the plane and cells in pixels, as well as the maximum bitmap
|
|
|
|
size that can be displayed.
|
2021-04-12 09:01:58 +00:00
|
|
|
* Added new function `ncdirect_stream()`, which does what you'd think.
|
2021-04-10 13:09:56 +00:00
|
|
|
* `cell_release()` and `cell_duplicate()` have been migrated to
|
|
|
|
`nccell_release()` and `nccell_duplicate()`, respectively. The former
|
|
|
|
forms have been deprecated, and will be removed in API3.
|
2021-04-10 14:17:41 +00:00
|
|
|
* Added `NCVISUAL_OPTION_ADDALPHA`, and the `transcolor` field to
|
|
|
|
`ncvisual_options`. If the former flag is used, the latter color
|
|
|
|
will be treated as transparent.
|
2021-04-08 08:12:01 +00:00
|
|
|
|
2021-04-04 18:28:16 +00:00
|
|
|
* 2.2.5 (2021-04-04)
|
|
|
|
* Bugfix release, no user-visible changes.
|
|
|
|
|
2021-03-28 20:59:02 +00:00
|
|
|
* 2.2.4 (2021-03-29)
|
2021-03-09 04:31:27 +00:00
|
|
|
* Implemented **EXPERIMENTAL** `NCBLIT_PIXEL` for terminals reporting the
|
|
|
|
Kitty pixel graphics protocol.
|
2021-03-21 21:07:47 +00:00
|
|
|
* Added `notcurses_debug_caps()` to dump terminal properties, both those
|
|
|
|
reported and those inferred, to a `FILE*`.
|
2021-03-22 11:30:17 +00:00
|
|
|
* Added `NCOPTION_NO_CLEAR_BITMAPS` option for `notcurses_init()`.
|
2021-03-27 05:38:48 +00:00
|
|
|
* Added `ncplane_valign()` and `ncplane_halign()`. `ncplane_align()` is now
|
|
|
|
an alias for `ncplane_halign()`, and deprecated.
|
2021-03-26 07:47:19 +00:00
|
|
|
* Added `NCVISUAL_OPTION_HORALIGNED` and `NCVISUAL_OPTION_VERALIGNED` flags
|
|
|
|
for `ncvisual_render()`.
|
|
|
|
* Added `NCPLANE_OPTION_VERALIGNED` flag for `ncplane_create()`.
|
2021-03-25 20:44:22 +00:00
|
|
|
* Added the `nctabbed` widget for multiplexing planes data with navigational
|
|
|
|
tabs. Courtesy Łukasz Drukała, in his first contribution.
|
2021-03-25 22:17:34 +00:00
|
|
|
* Removed **notcurses_canpixel()**, which was obsoleted by
|
|
|
|
**notcurses_check_pixel_support()**.
|
2021-03-27 10:01:51 +00:00
|
|
|
* Added `NCPLANE_OPTION_MARGINALIZED` flag for `ncplane_create()`. Added
|
|
|
|
the `ncplane_resize_marginalized()` resize callback. This allows you to
|
|
|
|
have automatic resizing with a margin relative to some parent plane.
|
2021-03-09 04:31:27 +00:00
|
|
|
|
2021-03-08 12:10:50 +00:00
|
|
|
* 2.2.3 (2021-03-08)
|
|
|
|
* Implemented **EXPERIMENTAL** `NCBLIT_PIXEL` for terminals reporting Sixel
|
|
|
|
support. Added `notcurses_check_pixel_support()` and its companion
|
2021-02-28 14:08:47 +00:00
|
|
|
`ncdirect_check_pixel_support()`, which must be called (and must return
|
|
|
|
success) before `NCBLIT_PIXEL` will be available. `NCBLIT_PIXEL` degrades
|
2021-03-08 12:10:50 +00:00
|
|
|
to `NCBLIT_3x2` until support is verified. This functionality is not yet
|
|
|
|
well integrated into general rendering; it will not play nicely with other
|
|
|
|
intersecting planes. Do not rely on current behavior.
|
2021-02-24 04:50:54 +00:00
|
|
|
* Add the `nctree` widget for line-oriented hierarchical data. See
|
|
|
|
the new `notcurses_tree(3)` man page for complete information.
|
2021-02-27 21:57:54 +00:00
|
|
|
* Ceased exporting `cell_fchannel()`, `cell_bchannel()`,
|
|
|
|
`cell_set_fchannel()`, and `cell_set_bchannel()`. These functions were
|
|
|
|
never safe for users. Everything a user might want to manipulate can be
|
|
|
|
manipulated with more granular functions.
|
2021-02-28 14:08:47 +00:00
|
|
|
* Add `SIGILL` to the set of fatal signals we handle.
|
|
|
|
* Added `NCKEY_SIGNAL`. `NCKEY_RESIZE` is now an alias for `NCKEY_SIGNAL`.
|
|
|
|
* `SIGCONT` now synthesizes a `NCKEY_SIGNAL`, just like `SIGWINCH`.
|
2021-02-22 04:07:57 +00:00
|
|
|
|
2021-02-18 12:07:26 +00:00
|
|
|
* 2.2.2 (2021-02-18):
|
2021-02-18 06:37:30 +00:00
|
|
|
* `notcurses_stats()` no longer qualifies its `notcurses*` argument with
|
|
|
|
`const`, since it now takes a lock. I'm sorry about that, though on the
|
|
|
|
plus side, data races can no longer result in invalid stats.
|
2021-02-18 12:07:26 +00:00
|
|
|
* `ncplane_qrcode()` no longer accepts a blitter argument, since `NCBLIT_2x1`
|
|
|
|
is the only one that actually works with qr code scanners. I'm unaware of
|
|
|
|
any external `ncplane_qrcode()` users, so hopefully this isn't a problem.
|
2021-02-15 08:32:13 +00:00
|
|
|
|
2021-02-10 00:34:03 +00:00
|
|
|
* 2.2.1 (2021-02-09):
|
|
|
|
* Brown-bag release: fix UTF8 discovery in direct mode. Sorry!
|
|
|
|
|
|
|
|
* 2.2.0 (2021-02-08):
|
2021-02-07 23:31:31 +00:00
|
|
|
* Add `notcurses_canbraille()` capability predicate.
|
|
|
|
|
2021-02-03 13:34:49 +00:00
|
|
|
* 2.1.8 (2021-02-03):
|
2021-01-21 08:51:12 +00:00
|
|
|
* The `notcurses-tetris` binary has been renamed `nctetris`.
|
2021-02-03 01:34:39 +00:00
|
|
|
* The new function `channel_set_palindex()` has been added.
|
2021-02-03 05:18:10 +00:00
|
|
|
* `NCDIRECT_OPTION_NO_READLINE` has been removed after a short life.
|
|
|
|
* `ncdirect_readline()` has been added. The first time used, it initializes
|
|
|
|
Readline. Readline will be destroyed by ncdirect_stop() if it was ever
|
|
|
|
initialized.
|
2021-01-21 08:51:12 +00:00
|
|
|
|
2021-01-21 08:21:31 +00:00
|
|
|
* 2.1.7 (2021-01-21):
|
2021-01-18 19:10:04 +00:00
|
|
|
* Notcurses has been split into two libraries, `notcurses-core` and
|
|
|
|
`notcurses`. The latter contains the heavyweight multimedia code,
|
|
|
|
so that applications which don't need this functionality can link against
|
2021-01-20 01:56:12 +00:00
|
|
|
only the former. `pkg-config` support is present for both. If using only
|
|
|
|
`notcurses_core`, use the new functions `notcurses_core_init()` and/or
|
|
|
|
`ncdirect_core_init()` in place of `ncdirect_init()` and
|
|
|
|
`notcurses_init()`, or your program is unlikely to link.
|
2021-01-18 19:22:54 +00:00
|
|
|
* The `notcurses-view` binary has been renamed `ncplayer`.
|
2021-01-18 19:10:04 +00:00
|
|
|
|
2021-01-15 10:14:07 +00:00
|
|
|
* 2.1.5 (2021-01-15):
|
2021-01-10 16:21:56 +00:00
|
|
|
* Notcurses **now depends on GNU Readline at build and runtime**, entirely
|
|
|
|
for the benefit of direct mode, which now prepares GNU Readline for safe
|
|
|
|
use (unless the new `NCDIRECT_OPTIONS_NO_READLINE` is used).
|
2021-01-08 09:59:24 +00:00
|
|
|
* `ncplane_putstr_yx()`, `ncplane_putstr_stained()`, and
|
|
|
|
`ncplane_putnstr_yx()` now return the number of columns output, as
|
|
|
|
long documented (they were mistakenly returning the number of bytes).
|
2021-01-13 09:49:55 +00:00
|
|
|
* `ncplane_abs_yx()` has been added, returning the absolute coordinates of
|
2021-01-15 05:32:55 +00:00
|
|
|
the plane's origin (i.e. coordinates relative to its pile).
|
2021-01-08 09:59:24 +00:00
|
|
|
|
2021-01-04 00:55:32 +00:00
|
|
|
* 2.1.4 (2021-01-03):
|
|
|
|
* Direct mode now supports `NCDIRECT_OPTION_NO_QUIT_SIGHANDLERS`, and by
|
2021-01-03 04:18:28 +00:00
|
|
|
default installs signal handlers similar to those of fullscreen mode.
|
|
|
|
They will attempt to reset the terminal, and propagate the signal.
|
|
|
|
* Add `channels_fg_palindex()` and `channels_bg_palindex()`.
|
|
|
|
|
2020-12-31 07:57:16 +00:00
|
|
|
* 2.1.3 (2020-12-31)
|
2020-12-28 07:21:37 +00:00
|
|
|
* `ncdirect_styles_{set, on, off}()` have been deprecated in favor of
|
|
|
|
`ncdirect_{set, on, off}_styles()`, to match `ncplane_` equivalents.
|
2020-12-28 07:41:22 +00:00
|
|
|
* `ncdirect_raster_frame()` no longer requires `blitter` nor `scale`.
|
2020-12-28 18:52:58 +00:00
|
|
|
* `ncdirect_{fg, bg}_{default, rgb}()` have been deprecated in favor of
|
|
|
|
`ncdirect_set_{fg, bg}_{default, rgb}()`, to match `ncplane`.
|
2020-12-28 07:21:37 +00:00
|
|
|
|
2020-12-26 07:53:40 +00:00
|
|
|
* 2.1.2 (2020-12-25)
|
2020-12-21 01:16:08 +00:00
|
|
|
* Add `notcurses_linesigs_enable()` and `notcurses_linesigs_disable()`.
|
2020-12-22 00:51:22 +00:00
|
|
|
* Divide `ncdirect_render_image()` into component `ncdirect_render_frame()`
|
|
|
|
and `ncdirect_raster_frame()` (the original remains), allowing multiple
|
|
|
|
threads to decode images concurrently.
|
2020-12-25 22:01:26 +00:00
|
|
|
* Sextants are now considered supported for certain values of `TERM`.
|
|
|
|
* `ncvisual_default_blitter()` has been deprecated in favor of the new
|
|
|
|
function `ncvisual_media_defblitter()`. This function's opaque logic
|
|
|
|
accepts a `struct notcurses *`, providing some future-proofing against
|
|
|
|
blitter changes. This function is necessary to get `NCBLIT_3x2` from
|
|
|
|
`NCBLIT_DEFAULT`.
|
2020-12-21 01:16:08 +00:00
|
|
|
|
2020-12-16 22:42:06 +00:00
|
|
|
* 2.1.1 (2020-12-16)
|
|
|
|
* Progress bars via `ncprogbar`, using the standard widget API.
|
2020-12-13 12:50:16 +00:00
|
|
|
|
2020-12-13 08:04:23 +00:00
|
|
|
* 2.1.0 (2020-12-13)
|
2020-12-13 05:19:24 +00:00
|
|
|
* `cell` has been renamed `nccell`. The old name has been kept as an alias,
|
|
|
|
but ought be considered deprecated. It will be removed in Notcurses 3.0.
|
|
|
|
|
2020-12-12 11:42:47 +00:00
|
|
|
* 2.0.12 (2020-12-12)
|
2020-12-10 12:44:31 +00:00
|
|
|
* `ncplane_resize_maximize()` has been added, suitable for use as a
|
|
|
|
`resizecb`. It resizes the plane to the visual area's size, and is
|
|
|
|
the resizecb used by the standard plane.
|
|
|
|
|
2020-12-09 05:34:37 +00:00
|
|
|
* 2.0.11 (2020-12-09)
|
2020-12-09 05:18:47 +00:00
|
|
|
* Added `ncplane_descendant_p()` predicate.
|
|
|
|
|
2020-12-06 18:22:26 +00:00
|
|
|
* 2.0.10 (2020-12-06)
|
2020-12-03 05:25:29 +00:00
|
|
|
* `ncpile_top()` and `ncpile_bottom()` have been added, returning the top
|
|
|
|
or bottommost plane, respectively, of the pile containing their argument.
|
|
|
|
* Added `cell_load_egc32()`, allowing a cell to be released and then reloaded
|
|
|
|
with a UTF-8 EGC of up to 4 bytes, passed as a `uint32_t` (as opposed to a
|
|
|
|
`const char *`).
|
|
|
|
|
2020-12-01 09:37:37 +00:00
|
|
|
* 2.0.9 (2020-12-01)
|
|
|
|
* `ncmenu`s now automatically expand or shrink to match their binding plane.
|
|
|
|
|
2020-11-27 21:49:56 +00:00
|
|
|
* 2.0.8 (2020-11-27)
|
2020-11-27 21:13:44 +00:00
|
|
|
* The major, minor, and patch versions are now available as preprocessor
|
|
|
|
numeric defines, fit for comparisons at the cpp level. The
|
|
|
|
`NOTCURSES_VERSION_COMPARABLE` macro has been added, to form a comparable
|
|
|
|
version ID from a provided major, minor, and patch level. The
|
|
|
|
`NOTCURSES_VERNUM_ORDERED` macro has been added, defined as a comparable
|
|
|
|
version ID for the current version of Notcurses.
|
2020-11-24 08:37:02 +00:00
|
|
|
* Add new function `ncplane_reparent_family()`, which reparents a plane and
|
|
|
|
its bindtree (all planes bound to the plane, recursively).
|
|
|
|
`ncplane_reparent()` now reparents only the specified plane; any planes
|
|
|
|
bound to it are reparented to its old parent.
|
2020-11-22 07:52:18 +00:00
|
|
|
* Move to a multipile model. For full details, consult
|
|
|
|
https://groups.google.com/g/notcurses/c/knB4ojndv8A and
|
|
|
|
https://github.com/dankamongmen/notcurses/issues/1078 and
|
|
|
|
`notcurses_plane(3)`. In short:
|
|
|
|
* A `struct notcurses` is now made up of one or more piles. A pile is one
|
|
|
|
or more `ncplane`s, with a bindtree and a z-axis. Different piles can be
|
|
|
|
mutated or rendered concurrently. There is no new user-visible type: a
|
|
|
|
`struct notcurses` can be treated as a single pile.
|
2020-11-24 01:31:39 +00:00
|
|
|
* To create a new pile from a new plane, use the new function
|
|
|
|
`ncpile_create()`. The returned plane will be the top, bottom, and root
|
|
|
|
of a new plane. Alternatively, use `ncplane_reparent()` or
|
|
|
|
`ncplane_reparent_family()` with the source equal to the destination.
|
2020-11-24 08:37:02 +00:00
|
|
|
* Add new function `ncpile_render()`, which renders the pile containing the
|
|
|
|
specified plane to the specified buffer. Add new function
|
2020-11-25 16:54:36 +00:00
|
|
|
`ncpile_rasterize()` to rasterize the specified buffer to output.
|
2020-11-26 00:43:53 +00:00
|
|
|
* Added `NCSTYLE_STRUCK` for strikethrough. Note that this is not supported
|
|
|
|
by terminfo, and we instead just hardcode the control sequence. Use at your
|
|
|
|
own risk! If your terminal doesn't support this control sequence, behavior
|
|
|
|
is undefined.
|
2020-11-22 07:52:18 +00:00
|
|
|
|
2020-11-22 05:22:11 +00:00
|
|
|
* 2.0.7 (2020-11-21)
|
2020-11-15 02:42:37 +00:00
|
|
|
* The `horiz` union of `ncplane_options` has been discarded; the `int x`
|
|
|
|
within has been promoted. This union brought no actual type safety, and was
|
|
|
|
annoying for callers to deal with otherwise. Sorry for the inconvenience.
|
2020-11-18 13:00:02 +00:00
|
|
|
* Added `ncplane_set_resizecb()` and `ncplane_resizecb()`.
|
2020-11-14 02:38:48 +00:00
|
|
|
|
2020-11-09 18:45:59 +00:00
|
|
|
* 2.0.3 (2020-11-09)
|
2020-10-28 08:36:48 +00:00
|
|
|
* Add `NCBLIT_3x2` aka the SEXBLITTER, making use of Unicode 13's sextant
|
|
|
|
glyphs. `notcurses_lex_blitter()` now recognizes `sexblitter`.
|
|
|
|
* Blitting functions no longer count transparent cells towards the total
|
|
|
|
returned number of cells written, but since these are not directly
|
|
|
|
callable by the user, this ought not lead to any user-visible changes.
|
2020-10-28 08:57:53 +00:00
|
|
|
* Added (k)eller demo to `notcurses-demo`.
|
2020-11-07 10:39:26 +00:00
|
|
|
* `ncreader` now supports Alt+'b' to move one word back, Alt+'f' to move one
|
2020-11-07 10:52:12 +00:00
|
|
|
word forward, Ctrl+'A' to move to the beginning of the line, Ctrl+'E' to
|
|
|
|
move to the end of the line, Ctrl+'U' to clear the line before the cursor,
|
|
|
|
and Ctrl+'W' to clear the word before the cursor (when
|
|
|
|
`NCREADER_OPTION_NOCMDKEYS` has not been specified).
|
2020-10-28 08:36:48 +00:00
|
|
|
|
2020-10-25 14:10:50 +00:00
|
|
|
* 2.0.2 (2020-10-25)
|
2020-10-20 23:35:16 +00:00
|
|
|
* Add `ncvisual_decode_loop()`, which returns to the first frame upon
|
|
|
|
reaching the end of a file.
|
2020-10-19 22:42:09 +00:00
|
|
|
|
2020-10-19 07:15:32 +00:00
|
|
|
* 2.0.1 (2020-10-19)
|
2020-10-15 07:03:43 +00:00
|
|
|
* Add `ncmenu_item_set_status()` for disabling or enabling menu items.
|
2020-10-15 11:41:59 +00:00
|
|
|
* Disabled menu items cannot be selected.
|
|
|
|
* Menu sections consisting only of disabled items are themselves disabled,
|
|
|
|
and cannot be unrolled.
|
2020-10-15 07:14:19 +00:00
|
|
|
* Add `ncinput_equal_p()` for comparison of `ncinput` structure data.
|
2020-10-15 11:41:59 +00:00
|
|
|
* `ncmenu_offer_input()` now recognizes the shortcuts for registered
|
|
|
|
sections, and will unroll the appropriate section when given input.
|
2020-10-19 05:37:31 +00:00
|
|
|
* Added `notcurses_stddim_yx_const()` (`notcurses_stddim_yx()` `const` form).
|
2020-10-15 07:03:43 +00:00
|
|
|
|
2020-10-19 07:15:32 +00:00
|
|
|
* 2.0.0 (2020-10-12) **"Stankonia"**
|
2020-10-11 01:05:13 +00:00
|
|
|
* **API STABILITY!** The API expressed in 2.0.0 will be maintained throughout
|
|
|
|
at least 2.x.x. A program compiled against 2.0.0 will continue to compile
|
|
|
|
and function properly against all 2.x.x releases. Thanks for putting up
|
2020-10-19 07:15:32 +00:00
|
|
|
with the freewheeling API breakage until now.
|
2020-10-11 01:05:13 +00:00
|
|
|
* `NOTCURSES_VERSION_{MAJOR, MINOR, PATCH, TWEAK}` are now available from
|
|
|
|
`notcurses/version.h`. These represent the version your program was
|
|
|
|
*compiled against*. The version your program is *linked to* can still be
|
|
|
|
acquired with `notcurses_version_components()` (or as a human-readable
|
|
|
|
string via `notcurses_version()`).
|
|
|
|
|
2020-10-10 00:07:01 +00:00
|
|
|
* 1.7.6 (2020-10-09)
|
2020-10-04 10:30:22 +00:00
|
|
|
* `ncstats` added the new stats `writeout_ns`, `writeout_min_ns`, and
|
|
|
|
`writeout_max_ns`. The `render_*ns` stats now only cover the rendering
|
|
|
|
and rasterizing process. The `writeout*ns` stats cover the time spent
|
|
|
|
writing data out to the terminal. `notcurses_render()` involves both of
|
|
|
|
these processes.
|
2020-10-04 14:17:57 +00:00
|
|
|
* `notcurses_render_to_buffer()` has been added, allowing user control of
|
|
|
|
the process of writing frames out to the terminal.
|
2020-10-07 08:24:10 +00:00
|
|
|
* `notcurses_stats_alloc()` has been added, to allocate an `ncstats` object.
|
2020-10-07 03:33:28 +00:00
|
|
|
`notcurses_reset_stats()` has been renamed `notcurses_stats_reset()`.
|
2020-10-07 11:24:04 +00:00
|
|
|
* Two flags have been defined for `ncdirect_init()`:
|
|
|
|
`NCDIRECT_OPTION_INHIBIT_SETLOCALE` and `NCDIRECT_OPTION_INHIBIT_CBREAK`.
|
|
|
|
The former is similar to `NCOPTION_INHIBIT_SETLOCALE`. The latter keeps
|
|
|
|
`ncdirect_init()` from touching the termios and entering cbreak mode.
|
2020-10-07 11:32:28 +00:00
|
|
|
* The C++ wrapper `Ncplane::putwc()` has been renamed `Ncplane::putwch()`, so
|
|
|
|
as not to clash with standard libraries implementing `putwc()` as a macro.
|
2020-10-04 10:30:22 +00:00
|
|
|
|
2020-09-29 17:12:17 +00:00
|
|
|
* 1.7.5 (2020-09-29)
|
2020-09-27 19:57:03 +00:00
|
|
|
* `ncreel_destroy()` now returns `void` rather than `int`.
|
2020-09-28 10:47:44 +00:00
|
|
|
* `nctablet_ncplane()` has been renamed `nctablet_plane()`.
|
|
|
|
* The standard plane now has the name `std`.
|
2020-09-29 16:48:19 +00:00
|
|
|
* Removed long-deprecated `ncplane_set_attrs()` and `ncplane_attrs()`.
|
|
|
|
* Renamed `ncplane_styles_*()` to `ncplane_*_styles()`, to conform with
|
|
|
|
every other `ncplane_set_*()` function, but retained the old versions as
|
|
|
|
(deprecated) aliases.
|
|
|
|
* Renamed `cell_styles_*()` to `cell_*_styles()`, to conform with every other
|
|
|
|
`cell_set_*()` function. Since these were inline functions, I've not
|
|
|
|
bothered to retain the old versions.
|
2020-09-27 19:57:03 +00:00
|
|
|
|
2020-09-20 21:30:46 +00:00
|
|
|
* 1.7.4 (2020-09-20)
|
2020-09-20 01:55:01 +00:00
|
|
|
* All `_rgb_clipped()` functions have been renamed `_rgb8_clipped()`, to
|
|
|
|
match the changes made in 1.7.2. Sorry, I ought have done this before.
|
2020-09-20 09:30:17 +00:00
|
|
|
* `ncplane_create()` has been introduced, taking a `struct ncplane_options`
|
|
|
|
parameter. This replaces `ncplane_aligned()`, and will replace
|
|
|
|
`ncplane_new()`. The latter ought be considered deprecated, and will be
|
|
|
|
removed in the future. To align a place as previously done with
|
|
|
|
`ncplane_aligned()`, use the `NCPLANE_OPTION_HORALIGNED` flag.
|
2020-09-20 10:58:18 +00:00
|
|
|
* The `ncplane_options` struct includes a function pointer member,
|
|
|
|
`resizecb`. If not `NULL`, this function will be called after the parent
|
|
|
|
plane is resized. See `notcurses_plane.3` for more information.
|
2020-09-20 14:14:05 +00:00
|
|
|
* `ncplane_resize_realign()` has been added, suitable for use as a
|
|
|
|
`resizecb`. It realigns the plane against its parent.
|
|
|
|
* `NCCHANNEL_ALPHA_MASK` has been renamed `CHANNEL_ALPHA_MASK`, to match
|
|
|
|
the other declarations.
|
2020-09-20 01:55:01 +00:00
|
|
|
|
2020-09-20 01:21:52 +00:00
|
|
|
* 1.7.3 (2020-09-19)
|
|
|
|
* API changes pursuant to 2.0 API finalization:
|
2020-09-15 05:39:42 +00:00
|
|
|
* `mbswidth()` has been renamed `ncstrwidth()`.
|
2020-09-13 11:51:49 +00:00
|
|
|
* The long-promised/dreaded Great Widget Review, normalizing behavior across
|
|
|
|
all widgets, has been effected. Sorry, there was no getting around this
|
|
|
|
one. Pretty much all widgets have slightly changed, because pretty much all
|
|
|
|
widgets previously behaved slightly differently:
|
2020-09-13 16:10:36 +00:00
|
|
|
* `ncselector_create()` and `ncmultiselector_create()` now take ownership
|
|
|
|
of the provided `ncplane`. On an error in these functions, the `ncplane`
|
|
|
|
will be destroyed. Otherwise, the `ncplane` is destroyed by
|
|
|
|
`ncselector_destroy()` or `ncmultiselector_destroy()`.
|
2020-09-13 17:53:11 +00:00
|
|
|
* `ncselector_create()`, `ncmultiselector_create()`, and
|
|
|
|
`ncreader_create()` no longer accept `int y, int x` placement
|
|
|
|
parameters. Just place the `ncplane`.
|
2020-09-13 18:18:42 +00:00
|
|
|
* `ncselector_options`, `ncmultiselector_options`, and `ncreel_options`
|
|
|
|
have lost their `bgchannels` members. Just set the base character for
|
|
|
|
the `ncplane`.
|
2020-09-13 17:53:11 +00:00
|
|
|
* `ncreader_options` has lost its `echannels`, `eattrword`, `egc`,
|
|
|
|
`physrows`, and `physcols` fields. Just set the base character and size
|
|
|
|
for the `ncplane`.
|
2020-09-17 18:08:12 +00:00
|
|
|
* Functions which set a 24-bit RGB value have had the suffix `g` replaced
|
|
|
|
with `g_rgb`. Functions which set three 8-bit RGB components have had the
|
|
|
|
suffix `rgb` replaced with `rgb8`. This was done because e.g.
|
|
|
|
`channels_set_fg()` and `channels_set_fchannel()` were indistinguishable on
|
|
|
|
sight. Failure to make the necessary conversions will result in compiler
|
|
|
|
errors. See https://github.com/dankamongmen/notcurses/issues/985.
|
2020-09-18 05:50:48 +00:00
|
|
|
* Functions ending in `_stainable()` now end in `_stained()`.
|
|
|
|
* `ncplane_putwc_stained()` and `ncplane_putwstr_stained()` have been
|
|
|
|
added in the interest of orthogonality.
|
2020-09-18 08:01:19 +00:00
|
|
|
* `ncplane_new_named()` has been eliminated. `ncplane_new()` now takes a
|
|
|
|
`const char* name` argument. `ncplane_bound()` and `ncplane_bound_named()`
|
|
|
|
have both been eliminated. `ncplane_new()` now accepts an `ncplane*`
|
|
|
|
instead of a `notcurses*`. All functionality exposed by the removed
|
|
|
|
functions is thus now present in `ncplane_new()`.
|
|
|
|
* `ncplane_aligned_named()` has been removed. `ncplane_aligned()` now accepts
|
|
|
|
a `const char* name` argument.
|
2020-09-13 11:51:49 +00:00
|
|
|
|
2020-09-10 08:14:01 +00:00
|
|
|
* 1.7.2 (2020-09-09)
|
2020-09-06 16:56:16 +00:00
|
|
|
* Exported `ncvisual_default_blitter()`, so that the effective value of
|
|
|
|
`NCBLIT_DEFAULT` can be determined.
|
2020-09-07 02:58:31 +00:00
|
|
|
* Added `NCREADER_OPTION_CURSOR`, instructing the `ncreader` to make the
|
|
|
|
terminal cursor visible, and manage the cursor's placement.
|
2020-09-06 16:56:16 +00:00
|
|
|
|
2020-09-01 01:49:39 +00:00
|
|
|
* 1.7.1 (2020-08-31)
|
2020-08-31 23:39:07 +00:00
|
|
|
* Renamed `CELL_SIMPLE_INITIALIZER` to `CELL_CHAR_INITIALIZER`, and
|
|
|
|
`cell_load_simple()` to `cell_load_char()`.
|
|
|
|
* Renamed `ncplane_putsimple()` to `ncplane_putchar()`,
|
|
|
|
`ncplane_putsimple_stainable()` to `ncplane_putchar_stainable()`,
|
|
|
|
and `ncplane_putsimple_yx()` to `ncplane_putchar_yx()`.
|
|
|
|
|
2020-08-30 08:43:27 +00:00
|
|
|
* 1.7.0 (2020-08-30)
|
|
|
|
* Added `notcurses_ucs32_to_utf8()` conversion helper.
|
2020-08-30 17:00:41 +00:00
|
|
|
* `ncdirect_init()` now takes a third `uint64_t flags` parameter. No flags
|
|
|
|
have been defined, and this parameter ought be set to 0.
|
2020-08-30 08:43:27 +00:00
|
|
|
|
2020-08-30 05:25:44 +00:00
|
|
|
* 1.6.20 (2020-08-30)
|
2020-08-29 19:50:45 +00:00
|
|
|
* Added convenience functions `ncplane_y()` and `ncplane_x()`, components
|
|
|
|
of longstanding `ncplane_yx()`.
|
2020-08-29 21:49:08 +00:00
|
|
|
* `ncreel` functions now generally call `ncreel_redraw()` themselves. This
|
|
|
|
includes `ncreel_add()`, `ncreel_del()`, `ncreel_next()`, and
|
|
|
|
`ncreel_prev()`. `ncreel_redraw()` need only be called to update tablets.
|
2020-08-29 22:38:28 +00:00
|
|
|
* In order to conform with CMake naming conventions, our CMake package is
|
|
|
|
now accessed as "Notcurses" rather than "notcurses".
|
2020-08-29 19:50:45 +00:00
|
|
|
|
2020-08-27 16:43:28 +00:00
|
|
|
* 1.6.19 (2020-08-27)
|
2020-08-26 18:07:16 +00:00
|
|
|
* Direct mode now places the terminal into "cbreak mode". This disables
|
|
|
|
echo and line-buffering of input. If this is undesirable, you can restore
|
|
|
|
the terminal state following `ncdirect_init()`, but this will break the
|
|
|
|
semantics of `ncdirect_getc()` and derivatives (due to line buffering).
|
|
|
|
* The notcurses input layer has been reproduced for direct mode, including
|
|
|
|
`ncdirect_getc()`, `ncdirect_getc_nblock()`, `ncdirect_getc_blocking()`,
|
|
|
|
and `ncdirect_inputready_fd()`. Mouse support is not yet available in
|
|
|
|
direct mode, but becomes possible through these additions.
|
2020-08-27 16:43:28 +00:00
|
|
|
* Some very subtle bugs on big-endian machines have been repaired. Be
|
|
|
|
aware that if your execution endianness does not match the endianness
|
|
|
|
assumed at build time, you're gonna have a rough go of it.
|
2020-08-26 18:07:16 +00:00
|
|
|
|
2020-08-25 22:24:19 +00:00
|
|
|
* 1.6.18 (2020-08-25)
|
2020-08-24 05:23:35 +00:00
|
|
|
* `nc_err_e` has been taken behind the shed and shot in the face. All
|
|
|
|
functions which once returned `nc_err_e` now return a bimodal `int`. Those
|
|
|
|
functions which accepted a value-result `nc_err_e*` no longer take this
|
|
|
|
argument.
|
2020-08-25 06:54:46 +00:00
|
|
|
* `notcurses_cursor_enable()` now takes two `int` parameters specifying the
|
|
|
|
desired location of the cursor. Both `notcurses_cursor_enable()` and
|
|
|
|
`notcurses_cursor_disable()` now return `int` rather than `void`.
|
|
|
|
* `NCOPTION_RETAIN_CURSOR` has been removed.
|
2020-08-25 07:52:12 +00:00
|
|
|
* `ncreader` now implements `NCREADER_OPTION_HORSCROLL` for horizontal
|
|
|
|
scrolling. In addition, the following functions have been added:
|
2020-08-25 21:28:29 +00:00
|
|
|
* `int ncreader_move_left(struct ncreader* n)`
|
|
|
|
* `int ncreader_move_right(struct ncreader* n)`
|
|
|
|
* `int ncreader_move_up(struct ncreader* n)`
|
|
|
|
* `int ncreader_move_down(struct ncreader* n)`
|
|
|
|
* `int ncreader_write_egc(struct ncreader* n, const char* egc)`.
|
2020-08-25 12:55:30 +00:00
|
|
|
* Added `ncplane_above()` and `notcurses_bottom()`.
|
2020-08-25 21:28:29 +00:00
|
|
|
* Added `ncplane_set_fchannel()` and `ncplane_set_bchannel()`.
|
2020-08-24 05:23:35 +00:00
|
|
|
|
2020-08-23 17:04:10 +00:00
|
|
|
* 1.6.17 (2020-08-22)
|
2020-08-23 05:00:00 +00:00
|
|
|
* `ncdirect_flush()` now takes a `const struct ncdirect*`.
|
2020-08-23 16:44:53 +00:00
|
|
|
* A `const char* title` field has been added to `ncplot_options`. If not
|
|
|
|
`NULL`, this title will be displayed to the right of any labels. Plot
|
|
|
|
data will cover the title, if present.
|
|
|
|
* `ncplot` no longer inverts `maxchannel` and `minchannel`. Speaking
|
|
|
|
of which, both of these fields are now plural, `maxchannels` etc.
|
2020-08-23 05:00:00 +00:00
|
|
|
|
2020-08-23 03:12:04 +00:00
|
|
|
* 1.6.16 (2020-08-22)
|
2020-08-16 19:41:13 +00:00
|
|
|
* `cell_simple_p()` has been removed. It is no longer a useful concept for
|
|
|
|
user code, and its presence is indicative of a likely error.
|
2020-08-18 12:41:55 +00:00
|
|
|
* `channels_blend()` has been removed. It wasn't really useful to users,
|
|
|
|
and was difficult to explain.
|
|
|
|
* `ncplane_mergedown()` has been renamed `ncplane_mergedown_simple()`. A
|
|
|
|
more general form, capable of projecting arbitrary subregions of the source
|
|
|
|
plane down to the destination plane. The source argument to
|
|
|
|
`ncplane_mergedown_simple()` is now `const`.
|
2020-08-20 21:37:12 +00:00
|
|
|
* `iprefix()` has been added, corresponding to `IPREFIXSTRLEN`. This ought
|
|
|
|
be used if you want binary prefixes without the 'i' suffix indicating
|
|
|
|
binary prefixes, which I predict will endear you to exactly no one.
|
2020-08-21 01:07:08 +00:00
|
|
|
* Added `channels_set_fg_palindex()` and `channels_set_bg_palindex()`.
|
|
|
|
Rewrote `cell_set_fg_palindex()` and `cell_set_bg_palindex()` in terms
|
|
|
|
of these two. This is possible because the palette index now overlaps the
|
|
|
|
RGB in a channel (they were originally in the attrword).
|
2020-08-21 06:27:58 +00:00
|
|
|
* Added `ncdirect_flush()`, mainly for the benefit of FFI that might not
|
|
|
|
have a native interface to `fflush(3)`.
|
2020-08-21 11:34:50 +00:00
|
|
|
* The `ncplot_options` struct has a new field, `legendstyle`. If the
|
|
|
|
dependent variable is being labeled, this style will be applied to the
|
|
|
|
legend. Without NCPLOT_OPTION_LABELTICKSD, this value is ignored.
|
2020-08-16 19:41:13 +00:00
|
|
|
|
2020-08-16 14:26:04 +00:00
|
|
|
* 1.6.15 (2020-08-16)
|
2020-08-15 23:25:08 +00:00
|
|
|
* Styles now work properly with `ncdirect`, which apparently has never
|
|
|
|
been the case until now :/.
|
|
|
|
* EGCs occupying four bytes or fewer when encoded as UTF8 are now
|
|
|
|
inlined directly into the `cell` structure. This should mean nothing
|
|
|
|
for you save less memory consumption per plane, and faster operation.
|
|
|
|
In the course of doing so, the `attrword` field of the `cell` structure
|
|
|
|
was renamed `stylemask`, and reduced from 32 to 16 bits.
|
2020-08-16 05:23:39 +00:00
|
|
|
* `notcurses_palette_size()` now returns `unsigned`.
|
2020-08-15 23:25:08 +00:00
|
|
|
|
2020-08-12 13:37:59 +00:00
|
|
|
* 1.6.12 (2020-08-12)
|
2020-08-09 21:40:59 +00:00
|
|
|
* `ncreel`s `tabletcb` callback function semantics are radically simplified.
|
|
|
|
No more worrying about borders that might or might not have been drawn;
|
|
|
|
simply fill up the plane that you're handed. This eliminates four of the
|
|
|
|
seven arguments to these callbacks. I hope the inconvenience of adapting
|
|
|
|
them is worth the elimination of complexity therein; I obviously think
|
|
|
|
it is =].
|
2020-08-06 01:26:32 +00:00
|
|
|
* `ncselector_redraw()` and `ncmultiselector_redraw()` no longer call
|
|
|
|
`notcurses_render()`. You will need to call `notcurses_render()` for the
|
2020-08-08 01:00:06 +00:00
|
|
|
display to reflect any changes. `ncselector_create` now binds the plane
|
|
|
|
it creates to the plane it was provided, and no longer checks to ensure
|
|
|
|
the widget can be fit within the borders of this binding plane.
|
2020-08-09 21:40:59 +00:00
|
|
|
* Added `ncplane_new_named()`, `ncplane_bound_named()`, and
|
|
|
|
`ncplane_aligned_named()`. These would be the defaults, but I didn't want
|
|
|
|
to break existing code. They might become the defaults by 2.0. Names are
|
|
|
|
used only for debugging (`notcurses_debug()`) at this time.
|
|
|
|
* Added `ncplane_parent()` and `ncplane_parent_const()` for accessing the
|
|
|
|
plane to which a plane is bound.
|
2020-08-12 13:37:59 +00:00
|
|
|
* The `notcurses` Rust crate (`rust/notcurses`) has been moved to
|
|
|
|
`dankamongmen/notcurses-rs` on GitHub, and removed from the tree.
|
|
|
|
Jose Luis will be leading development on this high-level wrapper.
|
2020-08-06 01:26:32 +00:00
|
|
|
|
2020-08-03 06:47:07 +00:00
|
|
|
* 1.6.11 (2020-08-03)
|
2020-08-03 03:45:58 +00:00
|
|
|
* `cell_egc_idx()` is no longer exported; it was never intended to be.
|
|
|
|
|
|
|
|
* 1.6.10 (2020-08-01)
|
2020-07-30 07:10:20 +00:00
|
|
|
* The `egc` member of `ncreader_options` is now `const`.
|
|
|
|
|
2020-07-27 01:25:52 +00:00
|
|
|
* 1.6.7 (2020-07-26)
|
2020-07-22 07:30:02 +00:00
|
|
|
* GNU libunistring is now required to build/load Notcurses.
|
2020-07-24 02:07:06 +00:00
|
|
|
* Added `ncmenu_mouse_selection()`. Escape now closes an unrolled menu
|
|
|
|
when processed by `ncmenu_offer_input()`.
|
2020-07-22 07:30:02 +00:00
|
|
|
|
2020-07-20 01:53:01 +00:00
|
|
|
* 1.6.6 (2020-07-19)
|
|
|
|
* `notcurses-pydemo` is now only installed alongside the Python module,
|
|
|
|
using setuptools. CMake no longer installs it.
|
|
|
|
* Added `notcurses_lex_blitter()` and `notcurses_str_scalemode()`.
|
|
|
|
|
2020-07-20 00:09:14 +00:00
|
|
|
* 1.6.4 (2020-07-19)
|
2020-07-19 06:54:53 +00:00
|
|
|
* Added `notcurses_str_blitter()`.
|
|
|
|
|
2020-07-16 03:34:25 +00:00
|
|
|
* 1.6.2 (2020-07-15)
|
|
|
|
* The option `NCOPTION_NO_FONT_CHANGES` has been added. This will cause
|
|
|
|
Notcurses to not muck with the current font. Because...
|
|
|
|
* Notcurses now detects a Linux text console, and reprograms its Unicode
|
|
|
|
to glyph tables and font data tables to include certain Box-Drawing and
|
|
|
|
Block-Drawing glyphs. This vastly improves multimedia rendering and
|
|
|
|
line/box art in the Linux console.
|
|
|
|
|
2020-07-12 07:20:50 +00:00
|
|
|
* 1.6.1 (2020-07-12)
|
2020-07-09 06:17:55 +00:00
|
|
|
* Added `notcurses_version_components()` to get the numeric components of
|
|
|
|
the loaded Notcurses version.
|
2020-07-05 11:14:07 +00:00
|
|
|
* Added `notcurses_render_file()` to dump last rendered frame to a `FILE*`.
|
2020-07-06 19:59:29 +00:00
|
|
|
* The `ncreel` widget has been overhauled to bring it in line with the
|
|
|
|
others (`ncreel` began life in another project, predating Notcurses).
|
|
|
|
The `toff`, `boff`, `roff`, and `loff` fields of `ncreel_options` have
|
Tons of work on ncreel (#776)
Tons of work on ncreel (#627, #749, #694)
Improve reel demo: get input wired up once more, avoid the FPS demo at bottom, print pointer and line count in each tablet, use new ncreel API. Improve notcurses-ncreel explorer: kill memory leaks (#694), draw tablets better, use new ncreel API. Fix bug in ncreel core where cruft could be left on the screen, via a very gross brute force algorithm. I'll likely come back and make this a bit less ghastly in the future #749. Remove weird one-off input system from ncreel, residue from outcurses. Make some of the normalizing changes speced out in #627
* ncreel: give each tablet an index, and print it #749
* reel: eliminate FIXME + param to insert_tabler() #749
* ncreel: label tablets with their adress to correlate against debugging logs #749
* more terminal environment variable notes
* TERMS.md: add Sakura, st
* ncreel: move legend out of reel proper
* ncreel_options: dump min/max_supported_rows/cols #627
* ncreel: remove weird one-off input layer #627
* ncreel: add ncreel_offer_input()
* reel demo: call demo_getc()
* reel demo: rig up input to demo main
* ncreel: drop ncreel_del_focused(), properly bind tablets
* reel demo: don't free up necessary plane
* ncreel: don't pull absolute locations of tablets
* ncreel: place tablets correctly in boundrel
* reel demo: add back support for left/right
* reel demo: restore thread movement
* ncreel: remove a great deal of complexity
* reel demo: stay out of FPS graph's way
* ncreel: give each tablet an index, and print it #749
* reel: eliminate FIXME + param to insert_tabler() #749
* ncreel: label tablets with their adress to correlate against debugging logs #749
* ncreel: move legend out of reel proper
* ncreel_options: dump min/max_supported_rows/cols #627
* ncreel: remove weird one-off input layer #627
* ncreel: add ncreel_offer_input()
* reel demo: call demo_getc()
* reel demo: rig up input to demo main
* ncreel: drop ncreel_del_focused(), properly bind tablets
* reel demo: don't free up necessary plane
* ncreel: don't pull absolute locations of tablets
* ncreel: place tablets correctly in boundrel
* reel demo: add back support for left/right
* reel demo: restore thread movement
* ncreel: remove a great deal of complexity
* reel demo: stay out of FPS graph's way
* reel: tighten up reel following redraw
* reel: fix upper-left corner of topless perimeter
* ncreel: print linecount, return clipped value
* reel: draw focused tablet relative to reel
* reel: brute force decruftification, how embarrassing #749
2020-07-09 06:02:23 +00:00
|
|
|
been purged, as have `min_` and `max_supported_rows` and `_cols`. There
|
|
|
|
is no longer any need to provide a pipe/eventfd. `ncreel_touch()`,
|
|
|
|
`ncreel_del_focused()`, and `ncreel_move()` have been removed.
|
2020-07-10 22:37:41 +00:00
|
|
|
* Added `ncdirect_hline_interp()`, `ncdirect_vline_interp()`,
|
|
|
|
`ncdirect_rounded_box()`, `ncdirect_double_box()`, and the ridiculously
|
|
|
|
flexible `ncdirect_box()`.
|
2020-07-11 03:41:26 +00:00
|
|
|
* Added `ncplane_putstr_stainable()`.
|
2020-07-05 11:14:07 +00:00
|
|
|
|
2020-07-05 02:40:32 +00:00
|
|
|
* 1.6.0 (2020-07-04)
|
2020-07-03 20:09:54 +00:00
|
|
|
* Behavior has changed regarding use of the provided `FILE*` (which, when
|
|
|
|
`NULL`, is assumed to be `stdout`). Both Notcurses and `ncdirect` now
|
|
|
|
try to open a handle to the controlling TTY, **unless** the provided
|
|
|
|
`FILE` is a TTY, in which case it is used directly. Certain interactions
|
|
|
|
now only go to a TTY, in particular `ncdirect_cursor_yx()` and various
|
|
|
|
`ioctl()`s used internally. Furthermore, when no true TTY is found (true
|
|
|
|
for e.g. daemonized processes and those in a Docker launched without
|
|
|
|
`-t`), Notcurses (in both full mode and direct mode) will return a virtual
|
|
|
|
screen size of 80x24. This greatly improves behavior when redirecting to a
|
|
|
|
file or lacking a TTY; one upshot is that we now have much-expanded unit
|
|
|
|
test coverage in the Docker+Drone autobuilders.
|
2020-06-30 04:07:32 +00:00
|
|
|
* `ncdirect_render_image()` has been added, allowing images (but not
|
|
|
|
videos or animated images) to be rendered directly into the standard I/O
|
|
|
|
streams. It begins drawing from the current cursor position, running
|
|
|
|
through the right-hand side of the screen, and scrolling as much content
|
|
|
|
as is necessary.
|
2020-07-03 20:09:54 +00:00
|
|
|
* `ncneofetch` has been rewritten to use `ncdirect`, and thus no longer
|
|
|
|
clobbers your entire terminal, and scrolls like standard I/O.
|
2020-06-30 04:07:32 +00:00
|
|
|
|
2020-06-28 20:18:57 +00:00
|
|
|
* 1.5.3 (2020-06-28)
|
2020-06-25 18:09:15 +00:00
|
|
|
* The default blitter when `NCSCALE_STRETCH` is used is now `NCBLIT_2x2`,
|
|
|
|
replacing `NCBLIT_2x1`. It is not the default for `NCSCALE_NONE` and
|
|
|
|
`NCSCALE_SCALE` because it does not preserve aspect ratio.
|
2020-06-28 05:53:42 +00:00
|
|
|
* The values of `CELL_ALPHA_OPAQUE` and friends have been redefined to
|
|
|
|
match their values within a channel representation. If you've been
|
|
|
|
using the named constants, this should have no effect on you; they sort
|
|
|
|
the same, subtract the same, and a zero initialization remains just as
|
|
|
|
opaque as it ever was. If you weren't using their named constants, now's
|
|
|
|
an excellent time to revise that policy. `CELL_ALPHA_SHIFT` has been
|
|
|
|
eliminated; if you happened to be using this, the redefinition of the
|
|
|
|
other `CELL_*` constants (probably) means you no longer need to.
|
2020-06-25 18:09:15 +00:00
|
|
|
|
2020-06-19 19:25:41 +00:00
|
|
|
* 1.5.2 (2020-06-19)
|
2020-06-17 23:39:37 +00:00
|
|
|
* The `ncneofetch` program has been added, of no great consequence.
|
2020-06-15 01:06:24 +00:00
|
|
|
* A `NULL` value can now be passed as `sbytes` to `ncplane_puttext()`.
|
2020-06-18 01:29:44 +00:00
|
|
|
* `ncvisual_geom()` now takes scaling into account.
|
2020-06-19 18:10:18 +00:00
|
|
|
* `notcurses_cantruecolor()` has been added, allowing clients to
|
2020-06-18 15:04:29 +00:00
|
|
|
determine whether the full RGB space is available to us. If not,
|
|
|
|
we only have palette-indexed pseudocolor.
|
2020-06-15 01:06:24 +00:00
|
|
|
|
2020-06-19 19:25:41 +00:00
|
|
|
* 1.5.1 (2020-06-15)
|
Rendering now does tripartite fallback to basecell
Each plane has a "base cell", which like all other cells is
initialized to the null glyph, opaque default foreground color,
and opaque default background color. Prior to this change, at
each cell of a plane, we decided whether to use that cell (the
"viscell") or the base cell depending on whether the viscell had
a non-null glyph. We now evaluate each component independently.
If the viscell has a null glyph, we use the base cell's glyph.
If the viscell has a default foreground, we use the base's fg.
If the viscell has a default background, we use the base's bg.
This was done because (a) it seems more intuitive (if I set a cell
to red, I expect red, not red iff there's a glyph in that cell
for this plane), and (b) because otherwise it was impossible to
do a multicolor overlay without blowing away underlying glyphs
(since without a glyph, you always reduced to the same base cell,
which could have only one fore- and background per render).
Existing code will need to change any instances where cells
lacking glyphs are colored, and those colors are not desired.
Since any such coloring had no effect before, it seems unlikely
that any ought exist (this did bring to light an instance in
the "qrcode" demo where we were staining overmuch of the plane).
This closes #395, the last big open worry regarding our API.
2020-06-12 03:01:10 +00:00
|
|
|
* The semantics of rendering have changed slightly. In 1.5.0 and prior
|
|
|
|
versions, a cell without a glyph was replaced *in toto* by that plane's
|
|
|
|
base cell at rendering time. The replacement is now tripartite: if there
|
|
|
|
is no glyph, the base cell's glyph is used; if there is a default
|
|
|
|
foreground, the base cell's foreground is used; if there is a default
|
|
|
|
background, the base cell's background is used. This will hopefully be
|
|
|
|
more intuitive, and allows a plane to effect overlays of varying colors
|
|
|
|
without needing to override glyphs (#395).
|
2020-06-09 09:00:08 +00:00
|
|
|
* `ncvisual_geom()`'s `ncblitter_e` argument has been replaced with a
|
|
|
|
`const struct ncvisual_options*`, so that `NCVISUAL_OPTIONS_NODEGRADE`
|
|
|
|
can be taken into account (the latter contains a `blitter_e` field).
|
2020-06-12 04:13:01 +00:00
|
|
|
* Added `ncuplot_sample()` and `ncdplot_sample()`, allowing retrieval of
|
|
|
|
sample data from `ncuplot`s and `ncdplot`s, respectively.
|
2020-06-14 02:24:50 +00:00
|
|
|
* Added convenience function `ncplane_home()`, which sets the cursor
|
|
|
|
to the plane's origin (and returns `void`, since it cannot fail).
|
|
|
|
* `ncplane_qrcode()` now accepts an `ncblitter_e`, and two value-result
|
|
|
|
`int*`s `ymax` and `xmax`. The actual size of the drawn code is
|
|
|
|
returned in these parameters.
|
2020-06-09 09:00:08 +00:00
|
|
|
|
2020-06-19 19:25:41 +00:00
|
|
|
* 1.5.0 (2020-06-08)
|
2020-06-07 09:08:46 +00:00
|
|
|
* The various `bool`s of `struct notcurses_options` have been folded into
|
|
|
|
that `struct`'s `flags` field. Each `bool` has its own `NCOPTION_`.
|
2020-06-07 01:38:05 +00:00
|
|
|
* Added a Pixel API for working directly with the contents of `ncvisual`s,
|
|
|
|
including `ncvisual_at_yx()` and `ncvisual_set_yx()`.
|
2020-06-08 07:01:58 +00:00
|
|
|
* Added `ncplane_puttext()` for writing multiline, line-broken text.
|
|
|
|
* Added `ncplane_putnstr()`, `ncplane_putnstr_yx()`, and
|
|
|
|
`ncplane_putnstr_aligned()` for byte-limited output of UTF-8.
|
2020-06-07 01:38:05 +00:00
|
|
|
|
2020-06-05 10:09:17 +00:00
|
|
|
* 1.4.5 (2020-06-04)
|
2020-06-05 07:47:13 +00:00
|
|
|
* `ncblit_rgba()` and `ncblit_bgrx()` have replaced most of their arguments
|
|
|
|
with a `const struct ncvisual_options*`. `NCBLIT_DEFAULT` will use
|
|
|
|
`NCBLITTER_2x1` (with fallback) in this context. The `->n` field must
|
|
|
|
be non-`NULL`--new planes will not be created.
|
2020-06-05 05:30:29 +00:00
|
|
|
* Added `ncplane_notcurses_const()`.
|
2020-06-05 02:47:38 +00:00
|
|
|
|
2020-06-01 20:18:56 +00:00
|
|
|
* 1.4.4.1 (2020-06-01)
|
Fully general ncvisual layer (#647)
This represents an essentially complete rewrite of ncvisual and associated code. It had two major goals:
Improve the ncvisual API based off lessons learned, pursuant to the upcoming API freeze. In particular, I wanted to:
decouple ncvisuals from ncplanes. It should be possible to render a ncvisual to multiple planes, with different scaling each time. It should be possible to create an ncvisual without a plane, etc.
normalize the various ways of constructing an ncvisual -- file, memory, plane, etc.
Support multiple blitters, from 7-bit ASCII to Sixel. This required writing the blitters in several cases, and they're not yet in their final implementations (but the API is fine)
I have not yet unified Plots and Visuals, and might not, given that the Plot code works fine. We could at this point implement Plots in terms of Visuals, though -- the blitter backend range has been unified. Sixel is not yet implemented, though it is listed.
There is a new POC tool, blitter. It renders its arguments using all possible blitter+scaling combinations. Another new POC, resize, displays its argument, then resizes it to the screen size and displays that, explicitly making use of ncvisual_resize() rather than a scaling parameter to ncvisual_render().
This also eliminates some memory leaks and bugs we were seeing in trunk, and brings in Sixel scaffolding.
The C++ wrapper will also need patching back up; I cut most of it down while wrestling with this crap, urk.
Closes #638, #562, and #622.
2020-05-29 01:16:58 +00:00
|
|
|
* Got the `ncvisual` API ready for API freeze: `ncvisual_render()` and
|
|
|
|
`ncvisual_stream()` now take a `struct ncvisual_options`. `ncstyle_e`
|
|
|
|
and a few other parameters have been moved within. Both functions now
|
|
|
|
take a `struct notcurses*`. The `struct ncvisual_options` includes a
|
|
|
|
`ncblitter_e` field, allowing visuals to be mapped to various plotting
|
|
|
|
paradigms including Sixel, Braille and quadrants. Not all backends have
|
|
|
|
been implemented, and not all implementations are in their final form.
|
2020-06-01 06:33:33 +00:00
|
|
|
`CELL_ALPHA_BLEND` can now be used for translucent visuals.
|
Fully general ncvisual layer (#647)
This represents an essentially complete rewrite of ncvisual and associated code. It had two major goals:
Improve the ncvisual API based off lessons learned, pursuant to the upcoming API freeze. In particular, I wanted to:
decouple ncvisuals from ncplanes. It should be possible to render a ncvisual to multiple planes, with different scaling each time. It should be possible to create an ncvisual without a plane, etc.
normalize the various ways of constructing an ncvisual -- file, memory, plane, etc.
Support multiple blitters, from 7-bit ASCII to Sixel. This required writing the blitters in several cases, and they're not yet in their final implementations (but the API is fine)
I have not yet unified Plots and Visuals, and might not, given that the Plot code works fine. We could at this point implement Plots in terms of Visuals, though -- the blitter backend range has been unified. Sixel is not yet implemented, though it is listed.
There is a new POC tool, blitter. It renders its arguments using all possible blitter+scaling combinations. Another new POC, resize, displays its argument, then resizes it to the screen size and displays that, explicitly making use of ncvisual_resize() rather than a scaling parameter to ncvisual_render().
This also eliminates some memory leaks and bugs we were seeing in trunk, and brings in Sixel scaffolding.
The C++ wrapper will also need patching back up; I cut most of it down while wrestling with this crap, urk.
Closes #638, #562, and #622.
2020-05-29 01:16:58 +00:00
|
|
|
* Added `ncvisual_geom()`, providing access to an `ncvisual` size and
|
|
|
|
its pixel-to-cell blitting ratios.
|
|
|
|
* Deprecated functions `ncvisual_open_plane()` and `ncplane_visual_open()`
|
|
|
|
have been removed. Their functionality is present in
|
|
|
|
`ncvisual_from_file()`. The function `ncvisual_plane()` no longer has
|
|
|
|
any meaning, and has been removed.
|
2020-06-01 06:33:33 +00:00
|
|
|
* The `fadecb` typedef now accepts as its third argument a `const struct
|
|
|
|
timespec`. This is the absolute deadline through which the frame ought
|
2020-06-01 07:27:55 +00:00
|
|
|
be displayed. New functions have been added to the Fade API: like the
|
|
|
|
changes to `ncvisual_stream()`, this gives more flexibility, and allows
|
|
|
|
more precise timing. All old functions remain available.
|
Fully general ncvisual layer (#647)
This represents an essentially complete rewrite of ncvisual and associated code. It had two major goals:
Improve the ncvisual API based off lessons learned, pursuant to the upcoming API freeze. In particular, I wanted to:
decouple ncvisuals from ncplanes. It should be possible to render a ncvisual to multiple planes, with different scaling each time. It should be possible to create an ncvisual without a plane, etc.
normalize the various ways of constructing an ncvisual -- file, memory, plane, etc.
Support multiple blitters, from 7-bit ASCII to Sixel. This required writing the blitters in several cases, and they're not yet in their final implementations (but the API is fine)
I have not yet unified Plots and Visuals, and might not, given that the Plot code works fine. We could at this point implement Plots in terms of Visuals, though -- the blitter backend range has been unified. Sixel is not yet implemented, though it is listed.
There is a new POC tool, blitter. It renders its arguments using all possible blitter+scaling combinations. Another new POC, resize, displays its argument, then resizes it to the screen size and displays that, explicitly making use of ncvisual_resize() rather than a scaling parameter to ncvisual_render().
This also eliminates some memory leaks and bugs we were seeing in trunk, and brings in Sixel scaffolding.
The C++ wrapper will also need patching back up; I cut most of it down while wrestling with this crap, urk.
Closes #638, #562, and #622.
2020-05-29 01:16:58 +00:00
|
|
|
|
2020-05-22 13:18:39 +00:00
|
|
|
* 1.4.3 (2020-05-22)
|
2020-05-22 10:53:47 +00:00
|
|
|
* Plot: make 8x1 the default, instead of 1x1.
|
|
|
|
* 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).
|
2020-05-22 10:56:02 +00:00
|
|
|
* C++'s NotCurses constructor now passes a `nullptr` directly through to
|
|
|
|
`notcurses_init()`, rather than replacing it with `stdout`.
|
2020-05-22 03:46:25 +00:00
|
|
|
* Added `USE_STATIC` CMake option, defaulting to `ON`. If turned `OFF`,
|
|
|
|
static libraries will not be built.
|
2020-05-22 10:53:47 +00:00
|
|
|
|
|
|
|
* 1.4.2.4 (2020-05-20)
|
2020-05-20 19:32:27 +00:00
|
|
|
* Removed `ncplane_move_above_unsafe()` and `ncplane_move_below_unsafe()`;
|
|
|
|
all z-axis moves are now safe. Z-axis moves are all now O(1), rather
|
|
|
|
than the previous O(N).
|
|
|
|
|
2020-05-17 13:01:53 +00:00
|
|
|
* 1.4.2.3 (2020-05-17)
|
2020-05-11 08:32:54 +00:00
|
|
|
* Added `notcurses_canutf8()`, to verify use of UTF-8 encoding.
|
2020-05-11 16:32:45 +00:00
|
|
|
* Fixed bug in `ncvisual_from_plane()` when invoked on the standard plane.
|
|
|
|
* `ncvisual_from_plane()` now accepts the same four geometric parameters
|
|
|
|
as other plane selectors. To reproduce the old behavior, for `ncv`, call
|
|
|
|
it as `ncvisual_from_plane(ncv, 0, 0, -1, -1)`.
|
|
|
|
* `ncvisual_from_plane()`, `ncplane_move_below_unsafe()`, `ncplane_dup()`,
|
|
|
|
and `ncplane_move_above_unsafe()` now accept `const` arguments where they
|
|
|
|
did not before.
|
2020-05-13 00:10:53 +00:00
|
|
|
* `notcurses_canopen()` has been split into `notcurses_canopen_images()` and
|
|
|
|
`notcurses_canopen_videos()`.
|
2020-05-17 00:06:33 +00:00
|
|
|
* `ncmetric()` now uses multibyte suffixes (particularly for the case of
|
|
|
|
'µ', i.e. micro). This has changed the values of `PREFIXSTRLEN` and
|
|
|
|
friends. So long as you were using `PREFIXSTRLEN`, this should require
|
|
|
|
only a recompile. If you were using `PREFIXSTRLEN` in a formatted output
|
|
|
|
context to count columns, you must change to `PREFIXCOLUMNS` etc.
|
|
|
|
* The `streamcb` type definition now accepts a `const struct timespec*` as
|
|
|
|
its third argument. This is the absolute time viz `CLOCK_MONOTONIC` through
|
|
|
|
which the frame ought be displayed. The callback must now effect delay.
|
2020-05-17 04:01:51 +00:00
|
|
|
* Mouse coordinates are now properly translated for any margins.
|
2020-05-17 06:14:27 +00:00
|
|
|
* `qprefix()` and `bprefix()` now take a `uintmax_t` in place of an
|
|
|
|
`unsigned`, to match `ncprefix`.
|
2020-05-11 08:32:54 +00:00
|
|
|
|
2020-05-11 01:39:02 +00:00
|
|
|
* 1.4.0 (2020-05-10)
|
2020-05-09 00:38:17 +00:00
|
|
|
* `ncplane_content()` was added. It allows all non-null glyphs of a plane to
|
|
|
|
be returned as a nul-terminated, heap-allocated string.
|
|
|
|
* `ncreader` was added. This widget allows freeform input to be edited in a
|
|
|
|
block, and collected into a string.
|
2020-05-09 00:58:00 +00:00
|
|
|
* `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.
|
2020-05-09 01:06:00 +00:00
|
|
|
* `ncplane_set_channels()` and `ncplane_set_attr()` have been added to allow
|
|
|
|
`ncplane` attributes to be set directly and in toto.
|
2020-05-09 02:33:39 +00:00
|
|
|
* `NULL` can now be passed as the `FILE*` argument to `notcurses_init()` and
|
|
|
|
`ncdirect_init()`. In this case, a new `FILE*` will be created using
|
|
|
|
`/dev/tty`. If the `FILE*` cannot be created, an error will be returned.
|
2020-05-09 08:45:51 +00:00
|
|
|
* A `flags` field has been added to `notcurses_options`. This will allow new
|
|
|
|
boolean options to be added in the future without resizing the structure.
|
|
|
|
Define `NCOPTION_INHIBIT_SETLOCALE` bit. If it's not set, and the "C" or
|
|
|
|
"POSIX" locale is in use, `notcurses_init()` will invoke
|
|
|
|
`setlocale(LC_ALL, "")`.
|
2020-05-09 12:41:03 +00:00
|
|
|
* All widgets now take an `ncplane*` as their first argument (some took
|
|
|
|
`notcurses*` before). All widgets' `options` structs now have an `unsigned
|
|
|
|
flags` bitfield. This future-proofs the widget API, to a degree.
|
2020-05-09 00:38:17 +00:00
|
|
|
|
2020-05-07 05:38:35 +00:00
|
|
|
* 1.3.4 (2020-05-07)
|
2020-04-29 09:44:22 +00:00
|
|
|
* `notcurses_lex_margins()` has been added to lex margins expressed in either
|
2020-05-04 15:05:52 +00:00
|
|
|
of two canonical formats. Hopefully this will lead to more programs
|
|
|
|
supporting margins.
|
2020-05-04 08:55:10 +00:00
|
|
|
* `ncvisual_open_plane()` has been renamed `ncvisual_from_file()`. The former
|
2020-05-04 15:05:52 +00:00
|
|
|
has been retained as a deprecated alias. It will be removed by 1.6/2.0.
|
|
|
|
* `ncvisual_from_rgba()` and `ncvisual_from_bgra()` have been added to
|
|
|
|
support creation of `ncvisual`s from memory, requiring no file.
|
2020-05-06 09:49:22 +00:00
|
|
|
* `ncvisual_rotate()` has been added, supporting rotations of arbitrary
|
|
|
|
radians on `ncvisual` objects.
|
2020-05-04 15:05:52 +00:00
|
|
|
* `ncvisual_from_plane()` has been added to support "promotion" of an
|
|
|
|
`ncplane` to an `ncvisual`. The source plane may contain only spaces,
|
2020-05-07 01:40:24 +00:00
|
|
|
half blocks, and full blocks. This builds atop the new function
|
|
|
|
`ncplane_rgba()`, which makes an RGBA flat array from an `ncplane`.
|
2020-05-07 02:21:22 +00:00
|
|
|
* The `ncplane` argument to `ncplane_at_yx()` is now `const`.
|
2020-04-29 09:44:22 +00:00
|
|
|
|
2020-04-27 01:25:23 +00:00
|
|
|
* 1.3.3 (2020-04-26)
|
2020-04-23 07:52:07 +00:00
|
|
|
* The `ncdplot` type has been added for plots based on `double`s rather than
|
|
|
|
`uint64_t`s. The `ncplot` type and all `ncplot_*` functions were renamed
|
|
|
|
`ncuplot` for symmetry.
|
2020-04-24 05:26:29 +00:00
|
|
|
* FFMpeg types are no longer leaked through the Notcurses API. `AVERROR`
|
|
|
|
is no longer applicable, and `ncvisual_decode()` no longer returns a
|
|
|
|
`struct AVframe*`. Instead, the `nc_err_e` enumeration has been introduced.
|
|
|
|
Functions which once accepted a value-result `AVERROR` now accept a value-
|
|
|
|
result `nc_err_e`. The relevant constants can be found in
|
|
|
|
`notcurses/ncerrs.h`.
|
2020-04-27 01:25:23 +00:00
|
|
|
* OpenImageIO 2.1+ is now supported as an experimental multimedia backend.
|
|
|
|
FFmpeg remains recommended. Video support with OIIO is spotty thus far.
|
2020-04-24 05:26:29 +00:00
|
|
|
* CMake no longer uses the `USE_FFMPEG` option. Instead, the `USE_MULTIMEDIA`
|
|
|
|
option can be defined as `ffmpeg`, `oiio`, or `none`. In `cmake-gui`, this
|
2020-04-25 19:52:23 +00:00
|
|
|
item will now appear as an option selector. `oiio` selects OpenImageIO.
|
2020-04-23 07:52:07 +00:00
|
|
|
|
2020-04-19 06:24:03 +00:00
|
|
|
* 1.3.2 (2020-04-19)
|
2020-04-18 11:11:33 +00:00
|
|
|
* `ncdirect_cursor_push()`, `notcurses_cursor_pop()`, and
|
|
|
|
`ncdirect_cursor_yx()` have been added. These are not supported on all
|
|
|
|
terminals. `ncdirect_cursor_yx()` ought be considered experimental; it
|
|
|
|
must read a response from the terminal, and this can interact poorly with
|
|
|
|
other uses of standard input.
|
2020-04-18 19:28:26 +00:00
|
|
|
* 1.3.1 unintentionally inverted the C++ `Notcurses::render()` wrapper's
|
|
|
|
return code. The previous semantics have been restored.
|
2020-04-18 11:11:33 +00:00
|
|
|
|
2020-04-18 04:35:15 +00:00
|
|
|
* 1.3.1 (2020-04-18)
|
2020-04-18 04:09:14 +00:00
|
|
|
* `ncplane_at_yx()` and `ncplane_at_cursor()` have been changed to return a
|
|
|
|
heap-allocated EGC, and write the attributes and channels to value-result
|
|
|
|
`uint32_t*` and `uint64_t*` parameters, instead of to a `cell*`. This
|
|
|
|
matches `notcurses_at_yx()`, and means they're no longer invalidated if the
|
|
|
|
plane in question is destroyed. The previous functionality is available as
|
|
|
|
new functions `ncplane_at_yx_cell()` and `ncplane_at_cursor_cell()`.
|
|
|
|
* `ncplane_set_base()` inverted its `uint32_t attrword` and `uint64_t channels`
|
|
|
|
parameters, thus matching every other function with these two parameters.
|
|
|
|
It moved `const char* egc` before either, to force a type error, as the
|
|
|
|
change would otherwise be likely to go overlooked.
|
2020-04-18 04:35:15 +00:00
|
|
|
* Scrolling is now completely implemented. When a plane has scrolling enabled
|
|
|
|
through use of `ncplane_set_scrolling(true)`, output past the end of the
|
|
|
|
last line will now result in the top line of the plane being lost, all
|
|
|
|
other lines moved up one, and the bottom line cleared.
|
2020-04-18 04:09:14 +00:00
|
|
|
|
|
|
|
* 1.2.8 (2020-04-10)
|
2020-04-11 16:39:31 +00:00
|
|
|
* `notcurses-tetris` now happily continues if it can't load its background.
|
|
|
|
|
2020-04-18 04:09:14 +00:00
|
|
|
* 1.2.7 (2020-04-10)
|
2020-04-10 15:22:26 +00:00
|
|
|
* Plots now always keep the most recent data to their far right (i.e., the
|
|
|
|
gap that is initially filled is on the left, rather than the right).
|
|
|
|
|
2020-04-18 04:09:14 +00:00
|
|
|
* 1.2.6 (2020-04-08)
|
2020-04-08 09:39:41 +00:00
|
|
|
* `ncplane_putsimple_yx()` and `ncplane_putstr_yx()` have been exported as
|
|
|
|
static inline functions.
|
2020-04-06 05:15:20 +00:00
|
|
|
* `ncplane_set_scrolling()` has been added, allowing control over whether a
|
2020-04-06 03:51:40 +00:00
|
|
|
plane scrolls. All planes, including the standard plane, do not scroll by
|
|
|
|
default. If scrolling is enabled, text output via the `*put*` family of
|
|
|
|
functions continues onto the next line when encountering the end of a row.
|
|
|
|
This does not apply to e.g. boxes or lines.
|
2020-04-06 05:15:20 +00:00
|
|
|
* `ncplane_putstr_yx()` now always returns the inverse of the number of
|
|
|
|
columns advanced on an error (it used to return the positive short count so
|
|
|
|
long as the error was due to plane geometry, not bad input).
|
2020-04-06 07:39:48 +00:00
|
|
|
* `ncplot_add_sample()` and `ncplot_set_sample()` have been changed to accept
|
|
|
|
a `uint64_t` rather than `int64_t`, since negative samples do not
|
|
|
|
currently make sense. Plots were made more accurate in general.
|
2020-04-08 09:39:41 +00:00
|
|
|
* `notcurses_term_dim_yx()` now accepts a `const struct notcurses*`.
|
|
|
|
* `notcurses_resize()` is no longer exported. It was never necessary to call
|
|
|
|
this in response to a resize, despite confusing documentation that could
|
|
|
|
have been read to suggest otherwise. If you're in a long block on input, and
|
|
|
|
get an `NCKEY_RESIZE`, just call `notcurses_refresh()` (which now calls
|
|
|
|
`notcurses_resize()` internally, as `notcurses_render()` always has).
|
2020-04-10 15:22:26 +00:00
|
|
|
* First Fedora packaging.
|
2020-04-06 00:13:37 +00:00
|
|
|
|
2020-04-18 04:09:14 +00:00
|
|
|
* 1.2.5 (2020-04-05)
|
2020-04-06 00:13:37 +00:00
|
|
|
* Add ncplot, with support for sliding-windowed horizontal histograms.
|
2020-04-06 05:15:20 +00:00
|
|
|
* gradient, polyfill, `ncplane_format()` and `ncplane_stain()` all now return
|
|
|
|
the number of cells written on success. Failure still sees -1 returned.
|
2020-04-06 00:13:37 +00:00
|
|
|
* `ncvisual_render()` now returns the number of cells emitted on success, as
|
2020-03-25 08:06:38 +00:00
|
|
|
opposed to 0. Failure still sees -1 returned.
|
2020-04-06 00:13:37 +00:00
|
|
|
* `ncvisual_render()` now interprets length parameters of -1 to mean "to the
|
2020-04-06 05:15:20 +00:00
|
|
|
end along this axis", and no longer interprets 0 to mean this. 0 now means
|
2020-03-25 08:06:38 +00:00
|
|
|
"a length of 0", resulting in a zero-area rendering.
|
2020-04-06 00:13:37 +00:00
|
|
|
* `notcurses_at_yx()` no longer accepts a `cell*` as its last parameter.
|
2020-04-06 05:15:20 +00:00
|
|
|
Instead, it accepts a `uint32_t*` and a `uint64_t*`, and writes the
|
|
|
|
attribute and channels to these parameters. This was done because the
|
|
|
|
`gcluster` field of the `cell*` was always set to 0, which was surprising
|
|
|
|
and a source of blunders. The EGC is returned via the `char*` return
|
|
|
|
value. https://github.com/dankamongmen/notcurses/issues/410
|
2020-03-25 08:06:38 +00:00
|
|
|
|
2020-04-18 04:09:14 +00:00
|
|
|
* 1.2.4 (2020-03-24)
|
2020-04-06 00:13:37 +00:00
|
|
|
* Add ncmultiselector
|
|
|
|
* Add `ncdirect_cursor_enable()` and `ncdirect_cursor_disable()`.
|