nick black
8228ba8204
drone: run notcurses-direct-pydemo
4 years ago
nick black
d0f7d6be27
notcurses-direct-pydemo: disable cursor
4 years ago
nick black
d101d2d2d9
add ncdirect_init() inhibit cbreak flag #1049
4 years ago
nick black
4e8cae7b2c
zoo: don't check cursor results, so we can run on vt100 #1047
4 years ago
nick black
fa92e0ffe8
purge stray #undef #1046
4 years ago
nick black
c6c157a5ad
notcurses_stats_alloc() everywhere
4 years ago
nick black
bf28170c61
mark cliptop unused in reel poc
4 years ago
nick black
8acd0dea58
MultiglyphWidth test: work around freebsd breakage #1046
4 years ago
nick black
0a3f697bc7
c++ ncplane: braces around initializer
4 years ago
nick black
f9e2c7863b
add notcurses_stats_alloc #1043
4 years ago
nick black
23bd4a2ac8
be less aggressive inserting LTR following bidi #850
4 years ago
nick black
4466f1aaff
pool_load_direct: call egc_rtl() for RTL U200E forcings #850
4 years ago
nick black
955c4b9baa
reel unit tests: correct for considering reel border
4 years ago
nick black
4d95ae185f
account for reel borders when laying out tablets #1036
4 years ago
nick black
1eff105cb9
reel poc: print error on redraw fail #1036
4 years ago
nick black
270b1b20ee
implement notcurses_render_to_buffer() #214
4 years ago
nick black
b4f1065f69
declare notcurses_render_to_buffer() #214
4 years ago
nick black
cc99f06a2a
tighten up render/writer columns
4 years ago
nick black
bb6887e05d
break up stattracking #1039
4 years ago
nick black
f999f413c5
break out raster_and_write() #214
4 years ago
nick black
222861de13
add ncstats to USAGE.md
4 years ago
nick black
29c7f960cc
add writeout_ stats, document stats #1039
4 years ago
nick black
4db2b49535
add CONTRIBUTING.md
4 years ago
nick black
4a9be7fa90
include memory.h where necessary
4 years ago
Marek Habersack
a29bfe9c42
[C++] Deal with widgets grabbing full ownership of Panel
...
Fixes: https://github.com/dankamongmen/notcurses/issues/1009
Whenever a widget is created with its `*_create` function it currently
claims full ownership of the passed panel, including its destruction.
However, the C++ wrapper around the panel is not aware of this and will
attempt to destroy the native panel in the destructor, leading to
segfaults.
Fix this by introduction of a `Widget` class which contains the logic to
properly modify the `Panel` instance to not double-destroy the native
panel. The solution is a bit fragile since the `Panel` instance is left
intact (we can't free it for the user) in a state that's safe for the
C++ wrapper, but calling any C function via the wrapper **will** pass a
`NULL` pointer in the panel argument - therefore the C functions MUST be
proofed against this. The proofing belongs in the C backend code since
this protects also C and other language binding users from such abuse.
The Widget class will first verify that the passed `Plane` instance
hasn't already been "disowned" and will throw an exception to the effect
if it was. Next, it will proceed to take over ownership of the native
panel instance and mark the passed `Panel` as "invalid" (i.e. not owning
any native panel instance anymore)
The above changes require modification of `Panel` instances and so all
the widget constructors taking `const*` or `const&` have been removed
from widget classes.
4 years ago
nick black
7241e0a5e1
demo tabletfxn: cliptop __attribute__ ((unused))
4 years ago
nick black
8cbc9e1b3b
add 1.7.0 to history section
4 years ago
nick black
aa7acc0e7a
quick wording change to FAQs
4 years ago
nick black
c2c4811053
reel: cap return lines at max size, warn on excess
4 years ago
nick black
bf40e163c8
reel poc: cap return at true size
4 years ago
nick black
20a49d053d
v1.7.5
4 years ago
nick black
afa65f640f
update notcurses_plane.3 and USAGE.md for new styles API
4 years ago
nick black
683217ef07
normalize style setters #1034
4 years ago
nick black
174a00b56c
add deprecated nctablet_ncplane() for old binaries
4 years ago
nick black
6ddf105746
uninline ncplane_new() so older binaries continue to link
4 years ago
nick black
8d347d14bb
move ncreel to PoCs, don't install #1033
4 years ago
nick black
f15dc9ba80
ncreel: properly size tablets in all border conditions #1031
4 years ago
nick black
c236b65266
name standard plane 'std'
4 years ago
nick black
a591e11c96
retain nctablet_ncplane() as deprecated alias
4 years ago
nick black
8b5e3f5000
add four unit test for reel tablet sizes
4 years ago
nick black
315df85b2b
note that python bindings are quite incomplete
4 years ago
nick black
afd444cea3
kill stray decl ncdirect_getc_nonblocking() #1028
4 years ago
nick black
20bf1ae2d4
nctablet_ncplane() -> nctablet_plane()
4 years ago
nick black
ec85dd1c3b
ncreel_destroy: return void
4 years ago
Marek Habersack
943e23535f
[C++] API sync
...
Fixes: https://github.com/dankamongmen/notcurses/issues/1025
Added:
* Direct: flush (`ncdirect_flush`)
* Direct: getc (`ncdirect_getc_blocking` and `ncdirect_getc_nblock`)
* Direct: getc (`ncdirect_getc`)
* Direct: get_inputready_fd (`ncdirect_inputready_fd`)
* NotCurses: align (`notcurses_align`)
* NotCurses: ucs32_to_utf8 (`notcurses_ucs32_to_utf8`)
* NotCurses: get_bottom (`notcurses_bottom`)
* Plane: resize_realign (`ncplane_resize_realign`)
* Plane: get_x (`ncplane_x`)
* Plane: get_y (`ncplane_y`)
* Plane: mergedown (`ncplane_mergedown`)
* Plane: putwc_stained (`ncplane_putwc_stained`)
* Plane: putstr_stained (`ncplane_putstr_stained`)
* Plane: set_fchannel (`ncplane_set_fchannel`)
* Plane: set_bchannel (`ncplane_set_bchannel`)
* Plane: get_styles (`ncplane_styles`)
* Plane: get_above (`ncplane_above`)
* Reader: move_left (`ncreader_move_left`)
* Reader: move_right (`ncreader_move_right`)
* Reader: move_up (`ncreader_move_up`)
* Reader: move_down (`ncreader_move_down`)
* Reader: write_egc (`ncreader_write_egc`)
* Visual: get_default_blitter (`ncvisual_default_blitter`)
Fixed:
* NotCurses: `cursor_{enable,disable}` must use `NOEXCEPT_MAYBE`
* Plane: renamed `putcw` to `putwc`
4 years ago
nick black
7089f31456
NCBLIT_BRAILLE: invert horizontal layout, fixes plots #1026
4 years ago
nick black
364cf61004
drone: ubuntu builer 2020-09-22a
4 years ago
joseLuís
38314d5e76
update function-summary.sh stats
4 years ago
joseLuís
bcc5481899
rust: update example
...
- use ncdirect_flush function for flushing
4 years ago
joseLuís
5be9edd6f4
rust: convert all rgb calls & new plane functions #1024
...
- add (TBD) ncplane_putchar, ncplane_putchar_yx
- delete ncplane_bound, ncplane_new, ncplane_pusimple & ncplane_putsimple_yx
- rename `.*_[bf]g.*_rgb` → .`*_[bf]g.*_rgb8`
- rename `.*_[bf]g` → .`*_[bf]g.*_rgb`
4 years ago