Commit Graph

881 Commits

Author SHA1 Message Date
nick black
ea4c593455
v2.3.0 2021-05-09 18:54:22 -04:00
nick black
dc9db79100
v2.2.11 2021-05-08 18:25:13 -04:00
nick black
f080e1502b add ncplane_erase_region() 2021-05-08 16:57:33 -04:00
nick black
73fc4ea935
demo: change up the order a bit, moving zoo before outro 2021-05-05 05:47:33 -04:00
nick black
06e7391b89
release.sh: change both instances of the version in index.html 2021-05-05 05:20:27 -04:00
nick black
2d6bdd3b5b
v2.2.10 2021-05-05 05:18:57 -04:00
nick black
4f5a8480c0 document new option NCVISUAL_OPTION_CHILDPLANE #1603 2021-05-04 19:08:55 -04:00
nick black
1a3df54ab9
release.sh: properly mangle index.html 2021-05-04 10:42:03 -04:00
nick black
923bc40516
v2.2.9 2021-05-03 02:51:04 -04:00
nick black
c8f4df9f15 HACKING: much ncvisual documentation 2021-05-02 20:20:05 -04:00
nick black
55837bcb55
add nccell_width() to avoid calling utf8_egc_len externally 2021-05-01 20:04:26 -04:00
nick black
5947f3d4d2 experimental threaded xray #1607 2021-04-30 16:44:36 -04:00
nick black
3eb004b61d s/channels/ncchannels/g #1570 2021-04-29 01:32:08 -04:00
nick black
d8cc3569ac
Block some signals while writing
Writing a partial escape can easily lock up a terminal. This
is especially relevant when working with bitmaps, as they're
thousands or even millions of times longer than a typical
escape. Immediately before writing, block SIGINT, SIGQUIT, and
SIGTERM in the writing thread, and unblock them upon emerging
(at which point we'll immediately see any queued signal
get delivered). Don't block signals like SIGSEGV that would
seem indicative of actual problems. For this to actually work,
all other threads must also have the signals masked; we thus
now add them to the signal mask of notcurses_getc(), rather
than deleting them. Closes #1416.
2021-04-27 16:53:44 -04:00
nick black
e43a9955cd
channel_* functions -> ncchannel_* #1570 2021-04-27 14:10:41 -04:00
Nick Black
2c5d938cbd
Paint sprixels bottom-to-top (#1589)
* Paint sprixels in order, bottom-to-top

We don't want to have to track sprixel order whenever someone
moves an ncplane, so just keep a list growing backwards as we
pass top-to-bottom in notcurses_render_internal(). Each time
we hit a sprixel plane, splice it out of the sprixel list, and
add it to the front of our temporary list. When we hit the
bottom, stick this temporary list on the end of our existing
list (any such planes are to be deleted, which comes before
drawing). Closes #1575.

* reorder collected sprixellist; solves kitty but breaks sixel =/ #1575

* remove debugging cruft

* [rust] fix up mergedown mutability
2021-04-24 13:08:09 -04:00
nick black
e29701cac3
notcurses-tester: accept -l to enable all logging 2021-04-24 05:18:04 -04:00
nick black
5a72383cb0
reject sprixels larger than plane, add unit test #1572 2021-04-24 04:41:23 -04:00
nick black
cc73811dd4
sprixelated planes may be resized after all #1572 2021-04-24 03:46:19 -04:00
nick black
cc657bbe35
notcurses_plane(3): document sprixelated effects #1585 2021-04-24 02:38:30 -04:00
nick black
23ef5313e3
document pixel blitting vis-a-vis planes #1585 #1572 2021-04-24 02:28:23 -04:00
nick black
68db5d5df6
notcurses(3) add paragraph on visuals #1585 2021-04-23 11:22:51 -04:00
Nick Black
c8680255be
palette256 -> ncpalette #1570 (#1573)
everything prefixed with palette256 is now prefixed with ncpalette
2021-04-22 04:11:06 -04:00
nick black
f4aa419a31
add notcurses_canhalfblock()/notcurses_canquadrant() #1575 2021-04-22 00:10:55 -04:00
nick black
6c7b40debf
add stats for sprixel emissions/elisions #1563 2021-04-21 11:43:10 -04:00
nick black
df8ff1f947
update index page 2.2.6 -> 2.2.8 2021-04-19 16:09:34 -04:00
nick black
d5b58d9f58
v2.2.8 2021-04-18 13:24:24 -04:00
nick black
eefc4fb91f
v2.2.7 2021-04-18 12:34:41 -04:00
nick black
6b7195a387 document new function ncvisual_inflate() #1546 2021-04-18 01:12:28 -04:00
Nick Black
8c6cd6a630
Further work on opacity optimizations (#1549)
* [bitmap] on move, clear old OPAQUE cells #1527
* update ncvisual_blitter_geom() documentation #1547
* replace some ncvisual_blitter_geom with NCVISUAL_OPTION_VERALIGNED
* [normal] replace ncvisual_blitter_geom with NCVISUAL_OPTION_VERALIGNED
* [intro] use ncvisual_blitter_geom() correctly #1547
* ncvisual_blitter_geom: only set *blitter on success
2021-04-17 23:11:11 -04:00
nick black
feab25bd7d ncdirect_render_visual: account for bitmap overhang #1515 2021-04-16 02:45:13 -04:00
nick black
0de734cb02 ncplayer has 9 log levels, not 10 2021-04-16 02:45:13 -04:00
nick black
53f92760dd ncplayer: support multiframe in direct mode via streamfile #1515 2021-04-16 02:45:13 -04:00
nick black
7ad5219fa2
convert another crop of cell_ to nccell_ #1532 2021-04-15 22:20:16 -04:00
Nick Black
e591ec2e98
cell -> nccell throughout much of remaining API (#1535)
cell -> nccell throughout much of the API #1532
2021-04-14 06:42:14 -04:00
nick black
fe9d877f80
notcurses-demo: add attribution for greatscott.jpg 2021-04-12 08:08:03 -04:00
nick black
4834ec6c1f
doc/man/index.html: link to version described 2021-04-12 07:54:19 -04:00
nick black
e017dcba89
v2.2.6 2021-04-12 05:01:58 -04:00
nick black
fada4148b5 [ncplayer] add -a option for alpha channel #1518 2021-04-10 12:02:58 -04:00
nick black
0c566cd74a [ncvisual] pipe transcolor through #1518 2021-04-10 12:02:58 -04:00
nick black
ff76dba6ed
cell_strdup -> nccell_strdup 2021-04-10 09:21:52 -04:00
nick black
0fc5f7835d
[docs] cell_release -> nccell_release 2021-04-10 09:11:04 -04:00
nick black
cf3a6317aa export ncdirect_stream() 2021-04-10 04:41:14 -04:00
nick black
945b560dc2
mention direct mode in CURSES document 2021-04-10 01:27:15 -04:00
nick black
f294c6bb0b
add ncplane_pixelgeom() #1507 2021-04-10 00:34:38 -04:00
nick black
05082fc277
ncplane_as_rgba(), returns pixel geometry along with bitmap #1508 2021-04-08 04:12:11 -04:00
nick black
ee39fb8cd7
testing: add battery of bitmap tests 2021-04-04 00:04:56 -04:00
nick black
9546b7e914
move logo to doc/ from data/ to keep install simple 2021-04-03 21:26:04 -04:00
nick black
9f54961c34
[OTHERS] add node.js blessed 2021-04-01 21:40:27 -04:00
nick black
b6a9b59f9d notcurses_plane.3: add BUGS about bitmap graphics and ncplane_at_yx() 2021-04-01 11:26:23 -04:00
nick black
4a884a009e
syntax in OTHERS.md, erp 2021-04-01 10:07:10 -04:00
nick black
244a618d1b
add pygamelib and Jexer to OTHERS.md 2021-04-01 10:05:53 -04:00
nick black
b92991e57b
[visual] allow NCBLIT_PIXEL in ascii mode 2021-03-28 19:40:21 -04:00
nick black
57114c8005
[bitmaps] remove redundant PixelWipeBlocks test 2021-03-28 16:59:02 -04:00
nick black
c87992c452
[ncvisual] fix NCVISUAL_OPTION_VERALIGNED definition 2021-03-28 11:16:10 -04:00
nick black
50df69ab31 [planes] implement MARGINALIZED in ncplane_create() #1472 2021-03-27 07:07:48 -04:00
nick black
78c8e70933 [planes] add NCPLANE_OPTION_MARGINALIZED #1472 2021-03-27 07:07:48 -04:00
nick black
86de98c5d2 Fix cell blit / plane vertical alignment
Deprecate ncplane_align(), after rewriting it as a passthrough
to new function ncplane_halign(). Add ncplane_valign(). Update
all callers. Closes #1468.
2021-03-27 02:31:51 -04:00
nick black
6105913d06 [planes] add NCPLANE_OPTION_VERALIGNED #1465 2021-03-26 04:18:15 -04:00
nick black
f714337fe1 [visual] NCVISUAL_OPTION_HORALIGNED for cell blitters #1443 2021-03-25 20:41:02 -04:00
nick black
033ae7f93e [capabilities] eradicate notcurses_canpixel() 2021-03-25 20:41:02 -04:00
nick black
828cce634a [capabilites] remove redundant notcurses_canpixel() 2021-03-25 20:41:02 -04:00
MasFlam
c677a4fd8a
Add the nctabbed widget (#1431)
Tabs for the people!

fixes #986
2021-03-24 17:27:29 -04:00
nick black
a27fc0e3f7 notcurses_fade.3: break up typedef across lines 2021-03-24 05:22:15 -04:00
nick black
2cf0f06562 [visual] add OPTION_HORALIGNED #1443 2021-03-24 05:22:15 -04:00
nick black
3c0a765599
notcurses_render.3: render a pile, not planes 2021-03-23 16:13:06 -04:00
nick black
33d408b4a3
[sixel] call sprite_sixel_init at proper time #1436 2021-03-22 07:30:17 -04:00
nick black
7b61822a7e
notcurses.3.md: add notcurses_tree reference 2021-03-22 05:08:32 -04:00
nick black
a6548fbcc8 [ncvisual] refuse to blit bitmaps to standard plane 2021-03-22 03:43:18 -04:00
nick black
66e545f160
[pixel] fill out only through the plane #1391 2021-03-16 19:24:39 -04:00
nick black
9d7689b684 add boxes section to proposed-terminfo.md 2021-03-16 00:32:45 -04:00
nick black
c72f920ea6 [pixel] invalidate cells on sprixel remove #1401 2021-03-16 00:32:45 -04:00
nick black
70059297c0
notcurses_direct.3: add image render+raster to docs 2021-03-14 23:16:29 -04:00
nick black
ede7594971
[ncls] accept -s for scaling mode #1411 2021-03-14 22:53:52 -04:00
nick black
9728e79396 [ncplayer] obey margins in direct mode #1411 2021-03-14 22:48:47 -04:00
nick black
7bc3800e27 [direct] accept limits for prep_image() #1411 2021-03-14 22:48:47 -04:00
nick black
0fdb3bd401
ncplayer.1: specify 0..6 for runtime blitter controls #1406 2021-03-14 04:12:57 -04:00
nick black
04ad933a4b
ncplayer: don't try to drive four/eight #1406 2021-03-14 03:49:18 -04:00
nick black
b97af99fa0 man1: normalize notcurses case 2021-03-13 14:44:52 -05:00
nick black
b117f26df3 ncplayer.1: document default blitters, plus hires and scalehi 2021-03-13 14:44:52 -05:00
nick black
7dfb366cbc
notcurses-demo: drop 'i' argument 2021-03-11 22:28:30 -05:00
nick black
6672590996
index.html: properly sort notcurses_reel.3 2021-03-09 00:00:20 -05:00
nick black
1dabe17d84
notcurses_tree.3: update version to 2.2.3 2021-03-08 23:58:51 -05:00
nick black
5e74070c77
index.html: add notcurses_tree.3 2021-03-08 23:57:41 -05:00
nick black
f35e2eb982
notcurses_visual.3: link to sixel/kitty 2021-03-08 23:31:27 -05:00
nick black
bc84987af5
v2.2.3 2021-03-08 07:10:50 -05:00
nick black
b6d818c8f7
OTHERS: add jexer. java gets on the board! 2021-03-07 21:56:07 -05:00
nick black
91b83ea2d9
ncls: accept -b param to specify blitter 2021-03-07 21:37:52 -05:00
nick black
49ce0d1c57
mention SIGCONT along with SIGWINCH 2021-02-28 04:26:00 -05:00
nick black
d4e87b4a35 rename notcurses-direct-pydemo ncdirect-pydemo 2021-02-27 19:03:42 -05:00
nick black
100a89291b hide cell_{b,f}channel(), cell_set_{b,f}channel() 2021-02-27 19:03:42 -05:00
nick black
bdc726349f ncplayer.1: update blitter names 2021-02-27 19:03:42 -05:00
nick black
cd0aaf58a2 normalize blitter names 2021-02-27 19:03:42 -05:00
nick black
5b4d920646 pixel documentation 2021-02-27 19:03:42 -05:00
nick black
6c7c9be6d2 require explicit check for pixel support
Add `notcurses_check_pixel_support()` and
`ncdirect_check_pixel_support()` per #1367. Removes
NCOPTION_VERIFY_SIXEL, again per #1367. Adds
`free_terminfo_cache()`, and calls it from both
`notcurses_stop_minimal()` and `ncdirect_stop()`.
Update all documentation. Closes #1371 and #1367.
2021-02-27 19:03:42 -05:00
nick black
40746e76e6 s/nonehi/hires/g 2021-02-27 19:03:42 -05:00
nick black
036d0a8697 s/NCBLIT_SIXEL/NCBLIT_PIXEL/g #1095 2021-02-27 19:03:42 -05:00
nick black
aa4da3f335
nctree: drop bchannels from options 2021-02-24 23:33:53 -05:00
Nick Black
e30b12a480
nctree (#1361)
The nctree widget, PoC, and unitt rs #1164.
2021-02-23 14:38:06 -05:00
nick black
11dbf7701e
link to markdown from index.html 2021-02-23 11:40:29 -05:00
nick black
bd92552aa4
Merge branch 'master' of github.com:dankamongmen/notcurses 2021-02-22 00:02:04 -05:00
nick black
58066d2018
HISTORY: add 2.2.0 from 2021-02-08 2021-02-22 00:02:00 -05:00
nick black
2221120543 add SIGILL to documented fatal signals #1357 2021-02-21 23:22:37 -05:00
nick black
c10f5a40ce
v2.2.2 2021-02-18 07:07:26 -05:00
nick black
2741b049cb
don't expose nctree in 2.2.2 2021-02-18 07:04:03 -05:00
nick black
bb14694000 add nctree movement api #1164 2021-02-15 13:23:41 -05:00
nick black
3eb42d6c0c implment nctree_create()/free() #1164 2021-02-15 13:23:41 -05:00
nick black
7a698310b6 ncinput is not opaque 2021-02-15 13:23:41 -05:00
nick black
14ce0ace73 man pages: relate nctree and ncreel #1164 2021-02-15 13:23:41 -05:00
nick black
2ae618c06b add new man page notcurses_tree.3 #1164 2021-02-15 13:23:41 -05:00
nick black
1b1e0b88be
ncplane_qrcode: drop blitter argument, update docs 2021-02-15 03:34:14 -05:00
nick black
0e7bf80ee9 hack up direct_mode_player #1342 2021-02-14 19:40:37 -05:00
nick black
2e6b07081e ncplayer: -k will use direct mode #1342 2021-02-14 19:40:37 -05:00
nick black
be4a9154a8
v2.2.1 2021-02-09 19:34:03 -05:00
nick black
c6c137d688
ncplayer.1: describe -q option completely 2021-02-09 18:50:20 -05:00
nick black
898f34f924
ncplayer: suppress banners when given 'q' #1342 2021-02-09 18:46:21 -05:00
joeyt
aa02cf855a fix some dank typos
Looks like the release process used a regex(?) to replace that included some
unintended targets.  Microsoft link broke in 2.2.0; CELL_ALPHA_TRANSPARENT
continually replaced since 2.0.1.
2021-02-08 18:07:48 -05:00
nick black
3cdf7160de
v2.2.0 2021-02-08 09:35:34 -05:00
nick black
cff8767de7
notcurses_visual.3: fix up markdown syntax 2021-02-07 22:10:41 -05:00
nick black
6b126f4049
add notcurses_canbraille() capability test 2021-02-07 18:31:31 -05:00
nick black
2cd8b9d82e
Further reduction of our gigantic README
Extract Curses differences and adaptation sections, and
move them to doc/CURSES.md. Reference this new document
in README.md. We now have sufficiently few sections that
we can dispense with the ToC. Do so.
2021-02-06 13:45:27 -05:00
nick black
dc436ec026
reorganize documentation, trim README.md 2021-02-04 23:33:24 -05:00
nick black
54ca2249df
v2.1.8 2021-02-03 08:34:49 -05:00
nick black
b3569b6aef
Initialize Readline on demand
Eliminate NCDIRECT_OPTION_NO_READLINE (it was only introduced in
Notcurses 2.1.6). Add a new function, ncdirect_readline(). Upon
first call to this function, initialize libreadline. Destroy
libreadline in ncdirect_stop() iff we initialized it. Add
hilodirect guessing game PoC from #1325. Rename
notcurses_directmode.3 to notcurses_direct.3. Closes #1326.
2021-02-03 00:18:10 -05:00
nick black
289d0d6a54
notcurses.3: proper linker syntax for notcurses 2021-02-02 22:19:58 -05:00
nick black
43dd0440f7
add raster timing stats #1324 2021-02-02 21:59:29 -05:00
nick black
2491b693ba
Add missing channel_set_palindex()
Implement channels_set_fg_palindex() and channels_set_bg_palindex()
in terms of channel_set_palindex(). Add missing entries to
notcurses_channels.3 man page. Use uint32_t in place of unsigned
when dealing with channels in notcurses.h.
2021-02-02 20:36:59 -05:00
nick black
b0915d1db6 Proper transparent blitter stacking
This completes the work for #1068. This addressed a subtle issue.
When we're using pixel->semigraphic art, we want slightly different
rendering. Essentially, imagine that we have two images, each two
pixels tall and one pixel wide. The top image is a transparent pixel
above a white pixel. The bottom image is a white pixel above a black
pixel. We'd expect the result to be two white pixels, but we can
instead get a black pixel above a white pixel. This is because the
*background* color is being merged from the bottom plane, but really
we want the *top* color. Ncvisuals are now blitted along with
information regarding which quadrants they draw over, and when
appropriate, we invert the foreground and background. Closes #1068.
2021-02-02 00:57:58 -05:00
nick black
294d3b7535
ncls.1: fix man syntax 2021-01-28 22:45:03 -05:00
nick black
76983d6ba7
add skip path writeup to HACKING.md 2021-01-25 05:50:46 -05:00
nick black
89c3fd46f3
release-checklist: drop reprepro 2021-01-23 22:30:28 -05:00
nick black
6ebedd73bd
notcurses_core.3: syntax in SEE ALSO 2021-01-21 16:54:47 -05:00
nick black
7eafcfe598
rename notcurses-tetris -> nctetris 2021-01-21 03:51:12 -05:00
nick black
121f10a9c5
v2.1.7 2021-01-21 03:21:31 -05:00
nick black
57271d09ce
v2.1.6 2021-01-21 02:44:00 -05:00
nick black
822d41eb8f
document notcurses-core split 2021-01-20 23:33:23 -05:00
nick black
dd210871d6
Reorder demos slightly
'dragon' looks much cooler when it has residue from the
prior demo still on the screen. 'yield' won't do, though,
as it's a graphic (which, devoid of color, looks like
nothing). move it after 'highcontrast'. move 'normal' up
after 'trans' so as never to present too much reading
to the user at once. users hate reading =[. this also
makes 'mojibake' look cooler while we're at it.

Signed-off-by: nick black <dankamongmen@gmail.com>
2021-01-20 02:24:49 -05:00
nick black
6d15aacc52 add notcurses_core.3.md man page #1301 2021-01-19 23:09:22 -05:00
nick black
1631818784
rename notcurses-view to ncplayer #1299 2021-01-18 14:22:54 -05:00
Nick Black
9112185657
Split up notcurses/notcurses-core (#1297)
Extract `libnotcurses-core` from `libnotcurses`. The former contains everything except multimedia code. The latter contains multimedia stuff (a wrapper around FFmpeg or OIIO). If built with `-DUSE_MULTIMEDIA=none`, there will not be any `libnotcurses.so` generated. `libnotcurses.so` uses library constructors/destructors to insert its implementation into the `ncvisual` stack at runtime. Users linking `-lnotcurses` will get the full implementation; users linking `-lnotcurses-core` only will get the stack less multimedia code.

The upshot of this is that someone can compile/install only `libnotcurses-core`, and a program linked against it will work just fine. This eliminates the need to install the full (large) dependency stack of the multimedia code unless necessary. This will hopefully be useful for e.g. installers etc. Closes #339.
2021-01-18 14:10:04 -05:00
nick black
3ecdde74d0
v2.1.5 2021-01-15 05:14:07 -05:00
nick black
5dfd0f94eb start replacing allglyph with animate #1263 2021-01-15 03:31:52 -05:00
nick black
1108ebb5b6
Fix up some subtle pile issues
ncplane_destroy() needs to call ncplane_reparent_family(), not
ncplane_reparent() as it was doing (closes #1291). ->absy and
->absx actually are absolute; return them directly for an O(1)
ncplane_abs_yx() (down from O(N), huzzah). Add some unit tests
related to destroying and reparenting (#1286). Add ncplane_abs_y()
and ncplane_abs_x(), document them, etc.
2021-01-15 00:32:55 -05:00
nick black
1c0a623b8b
document new function ncplane_abs_yx() #1286 2021-01-14 23:06:43 -05:00
nick black
68b340e3c8
ncdirect: prep readline for use #1120 2021-01-08 07:28:24 -05:00
nick black
974377f46d
first mdbook program 2021-01-08 00:54:05 -05:00
nick black
ae1463245d examples: directmode text 2021-01-07 18:40:53 -05:00
nick black
30db4af874 mdbook 2021-01-07 18:40:53 -05:00
nick black
19c41170c1
link to x/open curses 2021-01-05 20:10:44 -05:00
nick black
f88caf5128
s/Fullscreen mode/Rendered mode/g 2021-01-05 20:08:54 -05:00