Commit Graph

801 Commits

Author SHA1 Message Date
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
nick black
38f472c3b0
example book chapters #785 2021-01-05 20:02:20 -05:00
nick black
2048f8bc11
notcurses_plane.3: fix some syntax 2021-01-03 21:22:38 -05:00
nick black
7e05d0438a
notcurses_init.3: fix up some syntax 2021-01-03 21:18:52 -05:00
nick black
ec037023a7
notcurses.3: add period at end of sentence 2021-01-03 21:14:29 -05:00
nick black
e617acecc7
v2.1.4 2021-01-03 19:55:32 -05:00
nick black
18958e98cd update nccell def in docs 2021-01-03 19:20:19 -05:00
nick black
0c38728ceb Remove CELL_WIDEASIAN_MASK from docs #1277 2021-01-03 19:20:19 -05:00
nick black
21f6b5fc8a
notcurses.3: talk about piles, update threading section #1264 2021-01-03 02:48:12 -05:00
nick black
998cf02f34
add NCDIRECT_NO_QUIT_SIGHANDLERS #1271 2021-01-02 23:18:28 -05:00
nick black
555a3262b1
add channel_palindex and friends 2021-01-02 21:23:38 -05:00
nick black
af07822d35 Document base cell better
Improve the documentation for ncplane_set_base_cell() and
ncplane_set_base(). Go by render.c's authority (all three
channels are independently checked for transparency, and
replaced with the base cell if so--egc, fg, and bg). Add a
BASE CELL section to notcurses_plane.3. Check for, and reject,
an nccell which is secondary among a multicolumn EGC.

Closes #1238.
2021-01-02 13:28:15 -05:00
nick black
70b74a749b
v2.1.3 2020-12-31 02:57:16 -05:00
nick black
a9ccbc28f9
ncls: support -V/--version #1266 2020-12-31 02:31:28 -05:00
nick black
e37b466eea
notcurses-demo: support 'V' for version out #1266 2020-12-31 02:28:47 -05:00
nick black
5c3818b103
notcurses-demo.1: use proper pandoc syntax 2020-12-30 22:42:18 -05:00
nick black
84d6d0fae2
mention notcurses-demo geometry requirements 2020-12-30 22:37:07 -05:00
nick black
99f04fd7e3
correct title for notcurses_progbar.3 link in index.html 2020-12-30 21:45:12 -05:00
nick black
f471ab15df
update copyrights for 2021, ho humm 2020-12-30 03:41:58 -05:00
nick black
279d9a7f43
ncls.1 man page: mention --help 2020-12-29 03:13:25 -05:00
nick black
7e20a25482
ncdirect_*_palindex -> ncdirect_set_*_palindex #1261 2020-12-28 13:57:13 -05:00
nick black
f1253560ad
ncdirect: set_ on rgb functions #1261 2020-12-28 13:52:58 -05:00
nick black
713498efc5
syntax error in notcurses_input.3 2020-12-28 09:45:33 -05:00
nick black
e6d1cbb2b4
clean up notcurses_input.3 2020-12-28 09:44:44 -05:00
nick black
0fb8427fca
notcurses-demo.1: better mojibake description 2020-12-28 09:40:07 -05:00
nick black
5cf546b84f
notcurses-demo.1: add Alt+d and P commands 2020-12-28 09:38:49 -05:00
nick black
c62b0d3aa1
finish sentence in notcurses-demo man page 2020-12-28 09:35:56 -05:00
nick black
58bc9bd3bc
fix up writeout stats, report in shutdown banner 2020-12-28 04:50:20 -05:00
nick black
55d563b646
v2.1.2 2020-12-26 02:53:40 -05:00
nick black
dd1cdc40d5 add NCSCALE_NONE_HIRES, NCSCALE_SCALE_HIRES #1250 2020-12-25 23:28:50 -05:00
nick black
9268109778
update man pages for ncvisual_media_defblitter() #1114 2020-12-25 17:37:27 -05:00
nick black
1002347c9e
HACKING: document right-to-left shittery 2020-12-25 00:18:11 -05:00
nick black
248dd1fff2
add dynamic linesig control #1228 2020-12-20 20:16:08 -05:00
nick black
c0316ee96c view: document and parse -t time argument #1229 2020-12-20 18:34:15 -05:00
nick black
d6d5757b1d
v2.1.1 2020-12-16 17:42:06 -05:00
nick black
a0c722ff0d
notcurses_nccell.3 -> notcurses_cell.3 2020-12-16 05:40:14 -05:00
nick black
66bd8c9769
pull model.png out of index.html 2020-12-15 05:14:17 -05:00
nick black
6b859b6a32
ncls: add --align argument #1195 2020-12-14 13:58:15 -05:00
nick black
d56ea8b5e7 progbar: remove egcs options 2020-12-13 09:12:08 -05:00
nick black
82ffac8eed remove ncprogbar locking options #1202 2020-12-13 09:12:08 -05:00
nick black
1d74979718 progbar core / poc #1202 2020-12-13 09:12:08 -05:00
nick black
6bff720122 initial API + documentation for ncprogbar #1202 2020-12-13 09:12:08 -05:00
nick black
be3bd474f6
model.dot: simplify 2020-12-13 06:01:12 -05:00
nick black
520ce356b0
add 2.1.0 to history 2020-12-13 03:24:20 -05:00
nick black
6edafd1f84
v2.1.0 2020-12-13 03:04:23 -05:00
nick black
fd2acde1b1 rename cell->nccell, keep alias #1200 2020-12-13 00:49:37 -05:00
nick black
8497ee1877
v2.0.12 2020-12-12 06:42:47 -05:00
nick black
1239ac7a29
mathtext PoC: loop properly 2020-12-10 09:22:26 -05:00
nick black
eb485cda21
v2.0.11 2020-12-09 00:34:37 -05:00
nick black
a3220b8a73
add ncplane_descendant_p(), unit test it #1192 2020-12-09 00:18:47 -05:00
nick black
e60a7aa463
add stat for notcurses_refresh() 2020-12-06 13:45:35 -05:00
nick black
361a253aea
v2.0.10 2020-12-06 13:22:26 -05:00
nick black
4cf4a4ce0b
egcpool: fix cell_egc_idx() math #1179 2020-12-06 11:55:45 -05:00
nick black
14fa544433
add NCPLOT_OPTION_PRINTSAMPLE #1183 2020-12-06 06:33:54 -05:00
nick black
e5306f6197
widestomp PoC: eliminate color weirdness #1175 2020-12-03 13:09:19 -05:00
nick black
6fb5c1e512 Fill out some API holes, improve some comments
- Disambiguate the docs for ncplane_erase()
- Add ncpile_top(), ncpile_bottom()
- Refuse attempts to modify the standard plane's resizecb
- Copy alignment and resizecb in ncplane_dup()
- Add cell_load_egc32()
2020-12-03 01:02:16 -05:00
nick black
5b8c71b9b0
flesh out notcurses_reel.3 #1171 2020-12-02 20:15:53 -05:00
nick black
8083b46e3b
v2.0.9 2020-12-01 04:37:37 -05:00
nick black
6124d0e0d9
add link to ncls from man1 index 2020-12-01 04:34:04 -05:00
nick black
a7c03634c1 thoughts 2020-12-01 04:17:39 -05:00
nick black
c733f33b81 ncls: add -L argument, skeleton for stat() 2020-11-29 10:44:04 -05:00
nick black
65856c37b4 ncls: more command line parameters 2020-11-29 10:44:04 -05:00
nick black
c2671b6fef
data model: every plane gets an egcpool 2020-11-29 07:34:45 -05:00
nick black
5868e49c6a
model.dot: combine cellmatrix+egcpool 2020-11-29 07:31:26 -05:00
nick black
911f4eccc4
Merge branch 'master' of github.com:dankamongmen/notcurses 2020-11-28 23:55:45 -05:00
nick black
a24bb1b663
index.html: use text-size rather than h2 2020-11-28 23:55:41 -05:00
nick black
4d524f92bc apply htole() in ncpixel_*() #1130 2020-11-28 23:55:17 -05:00
nick black
253b9582b2
index.html: scale down headers by one 2020-11-28 20:46:59 -05:00
nick black
d5797d84d5 update data model diagram, link to debminiconf talk in history 2020-11-28 20:45:16 -05:00
nick black
3f9d87f5e6 include data model on web page 2020-11-28 20:45:16 -05:00
nick black
465a0ffbcb Improve handling of dot->graph documentation
Remove the pre-rendered model.png, a generated output. Add a
dot target to CMake, predicated on USE_DOXYGEN (since we have
REQUIRED dot in our Doxygen spec). Generate the png in the
output path. Rename stacks to piles in model.dot.
2020-11-28 20:45:16 -05:00
nick black
918520b21e notcurses_metric: reference notcurses_output(3) 2020-11-28 20:45:16 -05:00
nick black
dd8423dff3 embiggen notcurses_metric(3), add unit test #1107 2020-11-28 20:45:16 -05:00
Marek Habersack
c5c9432ac0 [Misc] A hodgepodge of tiny changes
CMake:
  Simplify cmake target+version config generation and make it actually
  work.  With the changes it is now possible to detect and use
  `Notcurses` in the following way:

     find_package(Notcurses REQUIRED)
     ...
     target_link_libraries(myapp PRIVATE notcurses::notcurses)

  Also, added the same CMake configuration for `Notcurses++`, to be used
  in the following way:

     find_package(Notcurses REQUIRED
     find_package(Notcurses++ REQUIRED)
     ...
     target_link_libraries(myapp PRIVATE notcurses++::notcurses++)

Docs:
  `notcurses_cell(3)`: `cell_styles_{on,off} -> cell_{on,off}_styles`
  and `cell_load_simple` -> `cell_load_char`

C++ API:
  * Plane: added constructors taking `ncplane_options const&` instead of
    the multitude of individual parameters
  * Plane: drop `struct` when `ncplane_options` is used.
  * Plane: added `strdup` (`cell_strdup`)
  * Plane: added `extract` (`cell_extract`)
2020-11-28 17:46:23 -05:00
nick black
47d5347f01
run mojibake after normal; it looks cool 2020-11-27 21:07:23 -05:00
nick black
2e78ae1c5e
update logo to notcurses II xray #1144 2020-11-27 20:55:38 -05:00
nick black
2a45620cd6
v2.0.8 2020-11-27 16:49:56 -05:00
nick black
b33c780c88 document ncpile_render(), ncpile_rasterize() 2020-11-25 19:19:31 -05:00
nick black
b6e5b60374 ncpile_create() not NCPLANE_OPTION_NEWPILE #1078 2020-11-23 22:58:05 -05:00
nick black
b747af2ae8 drop NCPLANE_OPTION_NEWPILE #1078 2020-11-23 22:58:05 -05:00
nick black
0da6a8c44b add NCPLANE_OPTION_NEWPILE #1078 2020-11-23 22:58:05 -05:00