nick black
7d528dcd6f
ncmenu: add disabled flag to ncmenu_items, draw them grey #1057
2020-10-15 02:58:03 -04:00
nick black
cba2d9684f
s/Brailler/Braille/g
2020-10-13 21:17:34 -04:00
nick black
4c15436de8
render: don't check tcache->cuf until necessary
2020-10-12 02:54:18 -04:00
nick black
60fb4a2351
selector: use easier languages #1053
2020-10-11 09:51:55 -04:00
nick black
a7a75d4c12
draw_borders: account for all border masks
2020-10-11 06:39:21 -04:00
nick black
39d13c8489
draw_borders: remove unnecessary else clauses
2020-10-11 05:54:15 -04:00
nick black
da1b8d1d53
install version.h #1054
2020-10-10 20:53:45 -04:00
nick black
1fe53d98fb
new notcurses ii test video #1055
2020-10-10 20:48:16 -04:00
nick black
68dbfeafc8
add version unit test #1054
2020-10-10 20:33:23 -04:00
nick black
cf616ab2ad
fallin: don't use builddef macros
2020-10-10 19:55:56 -04:00
nick black
29e83717f9
demo: don't use builddef.h #defines #1054
2020-10-10 19:51:15 -04:00
nick black
b809d5c7c5
s/USE_MULTIMEDIA/NOTCURSES_USE_MULTIMEDIA/g #1054
2020-10-10 19:37:01 -04:00
nick black
bc90eb41e0
terminfo: load up BCE flag
2020-10-09 01:33:23 -04:00
nick black
fd936461fc
A few changes to startup details
...
* Even when emitting smcup, emit an explicit screen clear, to handle
smcup that fills the screen with old background color #1045
* Rather than emitting notcurses_mouse_disable(), emit the more
powerful (proper superset) reset_term_attributes)
* Emit a diagnostic when we're not connected to a terminal
2020-10-09 01:19:36 -04:00
nick black
1b3f97944a
whiteout: refresh after each cycle to clear cruft
2020-10-08 18:38:44 -04:00
nick black
81cf1fbc71
reel: don't draw bottom border over top border for one-line tablets #1052
2020-10-08 18:18:32 -04:00
nick black
d101d2d2d9
add ncdirect_init() inhibit cbreak flag #1049
2020-10-07 07:43:50 -04:00
nick black
4e8cae7b2c
zoo: don't check cursor results, so we can run on vt100 #1047
2020-10-07 04:31:15 -04:00
nick black
c6c157a5ad
notcurses_stats_alloc() everywhere
2020-10-07 04:24:10 -04:00
nick black
bf28170c61
mark cliptop unused in reel poc
2020-10-07 02:28:58 -04:00
nick black
f9e2c7863b
add notcurses_stats_alloc #1043
2020-10-06 23:33:28 -04:00
nick black
23bd4a2ac8
be less aggressive inserting LTR following bidi #850
2020-10-05 18:56:09 -04:00
nick black
4466f1aaff
pool_load_direct: call egc_rtl() for RTL U200E forcings #850
2020-10-05 18:56:09 -04:00
nick black
4d95ae185f
account for reel borders when laying out tablets #1036
2020-10-05 16:46:56 -04:00
nick black
1eff105cb9
reel poc: print error on redraw fail #1036
2020-10-05 15:39:19 -04:00
nick black
270b1b20ee
implement notcurses_render_to_buffer() #214
2020-10-04 11:43:25 -04:00
nick black
cc99f06a2a
tighten up render/writer columns
2020-10-04 10:04:02 -04:00
nick black
bb6887e05d
break up stattracking #1039
2020-10-04 10:04:02 -04:00
nick black
f999f413c5
break out raster_and_write() #214
2020-10-04 10:04:02 -04:00
nick black
4a9be7fa90
include memory.h where necessary
2020-10-03 18:54:34 -04:00
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.
2020-10-03 13:19:49 -04:00
nick black
7241e0a5e1
demo tabletfxn: cliptop __attribute__ ((unused))
2020-10-03 02:43:18 -04:00
nick black
c2c4811053
reel: cap return lines at max size, warn on excess
2020-09-30 04:23:21 -04:00
nick black
bf40e163c8
reel poc: cap return at true size
2020-09-30 03:43:41 -04:00
nick black
683217ef07
normalize style setters #1034
2020-09-29 13:09:44 -04:00
nick black
174a00b56c
add deprecated nctablet_ncplane() for old binaries
2020-09-29 11:59:33 -04:00
nick black
6ddf105746
uninline ncplane_new() so older binaries continue to link
2020-09-29 11:52:48 -04:00
nick black
8d347d14bb
move ncreel to PoCs, don't install #1033
2020-09-28 07:20:16 -04:00
nick black
f15dc9ba80
ncreel: properly size tablets in all border conditions #1031
2020-09-28 07:08:17 -04:00
nick black
c236b65266
name standard plane 'std'
2020-09-28 07:08:17 -04:00
nick black
20bf1ae2d4
nctablet_ncplane() -> nctablet_plane()
2020-09-27 16:46:39 -04:00
nick black
ec85dd1c3b
ncreel_destroy: return void
2020-09-27 15:57:03 -04:00
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`
2020-09-27 15:32:25 -04:00
nick black
7089f31456
NCBLIT_BRAILLE: invert horizontal layout, fixes plots #1026
2020-09-23 07:48:04 -04:00
nick black
11a2861e8d
FPS graph ought be recentered on resized #1023
2020-09-20 11:48:15 -04:00
nick black
2f26f06386
alignment: add NCALIGN_UNALIGNED, preserve align type #364
2020-09-20 11:46:49 -04:00
nick black
a685cc18f3
recursively cascade resizes using resizecb #869
2020-09-20 08:54:56 -04:00
nick black
bc639b528e
adapt ncplane_new_internal() callers
2020-09-20 08:54:56 -04:00
nick black
7f2aeedba3
ncplane_new_internal() using ncplane_options
2020-09-20 08:54:56 -04:00
nick black
7b51bab79a
add resizecb to ncplane_options struct #869
2020-09-20 08:54:56 -04:00