Commit Graph

1437 Commits (a2170a4291417405f29ce8219d81a631f8a6d13e)
 

Author SHA1 Message Date
nick black 013e445209
add notcurses_multiselector(3) to notcurses(3) 4 years ago
Nick Black f9c54761f5
Basic mandelbrot for `n`ormal demo #145 (#424)
normal: working mandelbrot, very basic #145
4 years ago
Nick Black de9158bd7b
More tetris work for book #421 (#423)
* tetris: use NES gravities
* tetris: use NES grav multiplier of 50ms
* tetris: implement move down #421
* README: mention notcurses-tetris #421
* tetris: use double box for boundary #421
* tetris: extract background.h
* tetris: break up into chunks suitable for book
* tetris: do the rotations
4 years ago
nick black ae1421db15
ncvisual_render() API change/documentation #422
ncvisual_render() now returns the number of cells emitted
rather than just 0/-1. -1 is still returned on failure.
Rather than 0 for length meaning "all possible length", it
now means 0, and -1 means "all possible length". All demos,
tests, and PoCs have been updated. #422
4 years ago
Marek Habersack 73b13e0fd5 [C++] There can be only one stdplane
Fixes: https://github.com/dankamongmen/notcurses/issues/409

Standard planes can be duplicated but the copy must not be treated as a
standard plane. There can be only one :)

Make it so.
4 years ago
nick black c43006c2bf
update symbol files for 1.2.4 4 years ago
nick black 7c6b655483 v1.2.4 4 years ago
nick black 4e7d918732
Merge branch 'master' of github.com:dankamongmen/notcurses 4 years ago
nick black 0432a8a444
poc/zalgo: center output 4 years ago
nick black 8113ce72c1 fix dumb error in ncplane_below() description 4 years ago
nick black 84ef40143e
tetris: eliminate compiler warning 4 years ago
Nick Black 2b7b384e91
Most of notcurses-tetris, mergedown fixes (#420)
* ncplane_mergedown() fix for small planes #417
* tetris game needed for the book
4 years ago
nick black c3feca6ded ncplane_polyfill: reject null glyph + test #418 4 years ago
nick black 3fff41ffa2 Doxygen: update INPUT for include hierarchy 4 years ago
Marek Habersack ad93c03851 [C++] API sync
Added:

  * Plane: mergedown (`ncplane_mergedown`)
4 years ago
Nick Black 52bdbc6724
ncplane_translate() accept NULL dest as standard plane #408 (#411)
* tetris man page
* tetris basic skeleton
* tetris: Ticker()
* README: fix up some obsolete terminology
* tetris: draw the game board
* tetris: add NewPiece()
* tetris: draw tetriminos
* tetris: check for stuck piece, move it down
* Accept NULL dst in ncplane_translate() #408
4 years ago
nick black fbd222b04a notcurses_init(): mention setlocale in error
If notcurses_init() fails due to a bad encoding, it's
probably because someone didn't call setlocale(3).
Make a suggestion in the error message. Resolves #414.
4 years ago
nick black 060c0c2a47 README: WINDOW->plane in reel docs 4 years ago
nick black 7e71ad8e11 implement ncplane_mergedown() #361 4 years ago
nick black 38f4255dc0 Define ncplane_mergedown() #361
ncplane_mergedown() is similar to the "Merge down" operation
in the GIMP. It writes to the destination plane the result
of rendering the source and destination frames per se.
4 years ago
nick black bb2c469168
Merge branch 'master' of github.com:dankamongmen/notcurses 4 years ago
nick black 12b601e02b
fallin': always push back NULLed out subwindows
I noticed while running benchmarks against ranges of widths that
we failed on certain widths. I traced this down to a repeatable
failure when run with the -c flag at the 104x52 resolution. At this
geometry and PRNG seed, we NULLed out the first subwindow of fallin',
but didn't recompress the window array. On the next loop we thus used
it again, and segfaulted out. This fixes that up. We now pass 100% of
the benchmarks, whereas we were failing about 3% before #407.
4 years ago
nick black 6f9fdc115a published next month! :D 4 years ago
nick black bc3473da8a demo: print unnecessary comma in JSON 4 years ago
Marek Habersack f4b90a3587
Merge pull request #406 from dankamongmen/dankamongmen/ncpp
ncpp: stop() propagate out return value, public linkage
4 years ago
nick black 8312b88e3c NotCurses::stop(): match original semantics 4 years ago
nick black 78fadafb8f notcurses++ needs PUBLIC notcurses linkage 4 years ago
nick black 66bb614ab3 NotCurses::stop(): propogate out notcurses_stop() return value 4 years ago
Marek Habersack 3e78dd7d1f [C++] API sync
New classes:

   * MultiSelector (`ncmultiselector_*`)

Added:

   * Direct: cursor_{enable,disable}
   * Plane: high_gradient (`ncplane_highgradient`)
   * Plane: high_gradient_sized (`ncplane_highgradient_sized`)
   * Plane: rotate_cw (`ncplane_rotate_cw`)
   * Plane: rotate_ccw (`ncplane_rotate_ccw`)

Updated:

   * NotCurses: added all the margin initializers to the default options
4 years ago
nick black ba90c70a47
ncplane_cursor_yx() takes const first argument 4 years ago
nick black bdd7f9422a
python: add ncdirect_cursor_*() 4 years ago
nick black db30bcf0d2
document new ncdirect functions for cursor #402 4 years ago
nick black 1b4333861a
add ncdirect_{en,dis}able_cursor() #402 4 years ago
nick black d5d827f38e
adjust ncplane_yx() for margins 4 years ago
Nick Black c056a0a026
Subregion renders #293 (#404)
Add four new fields to notcurses_options: margin_{tblr}, which requests margins to the top, right, bottom, and left. Render only within those margins, leaving the screen otherwise untouched (well, cleared if using the alternate screen). #293
4 years ago
nick black 982d729c69 switch to CLOCK_MONOTONIC from _RAW 4 years ago
nick black d77aa78a0e s/CLOCK_MONOTONIC_RAW/CLOCK_MONOTONIC/g 4 years ago
nick black de520f3aa0
python avoid double def 4 years ago
nick black be089747a7 ncmultiselector_selected() #322 4 years ago
nick black 638be8feb7 multiselector options/items #322 4 years ago
nick black 2dd97de4e4 multiselector man page 4 years ago
nick black a46393b035 ncmultiselect: get space rigged up #322 4 years ago
nick black 4abe078eae ncmultiselector #322 4 years ago
nick black 667ac14549 ncmultiselector: draw properly 4 years ago
nick black a9c64a8c8b yummy covid-19 4 years ago
nick black 078feca8e6 ncmultiselector links up 4 years ago
nick black 635d6e5751 ncmultiselect demo 4 years ago
nick black 6060248968 ncmultiselector_options structure #322 4 years ago
nick black 583906368c
add internal safe home_cursor() 4 years ago
nick black eead4c1414
notcurses_highgradient() added #398 4 years ago