Commit Graph

1437 Commits (a2170a4291417405f29ce8219d81a631f8a6d13e)
 

Author SHA1 Message Date
nick black d7ea87e129 notcurses_refresh(): properly initialize rvec #380 4 years ago
nick black 83b325de05 notcurses_refresh(): drop double write #380 4 years ago
nick black e1b729c6a3
Kill warn_unused_result warning in reel demo 4 years ago
nick black a5bdb88ca9
update libnotcurses symbols 4 years ago
nick black d44759fd25
kill compiler warning on write(2) 4 years ago
nick black ac683e21d2
v1.2.3 4 years ago
nick black e2459ac1a4
purge old rotate implementation #351 4 years ago
Nick Black 4e58747709
ncplane_rotate_cw() and ncplane_rotate_ccw() (#396)
Introduce limited plane rotation capability. We currently support clockwise and counterclockwise rotation of planes. Square and rectangular geometries are both supported, but there must be an even number of columns. The atomic unit of rotation is a 2x1 "square" (this assumes .5 cell aspect ratio). We can only rotate those glyphs which have rotated equivalents, and not even all of those. We currently handle only:

* null glyph
* space
* upper half block
* lower half block
* full block

I've added unit tests as well. This functionality is used by our Tetris example in the book
4 years ago
nick black 333f7c1192
define ncplane_rotate_cw/ccw() 4 years ago
nick black b8608c15c9
ncdirect_init(): reset style #393 4 years ago
nick black c355e26d0f
add zalgo poc 4 years ago
nick black 696873894e
ncmenu_offer_input: return true on match 4 years ago
nick black 163565dddd
handle_mouse(): drop unused variables 4 years ago
nick black afe724ee1d
docs: update for ncplane_translate_abs() 4 years ago
nick black 3498956370
ncplane_mouseevent_p()->ncplane_translate_abs()
ncplane_mouseevent_p() is retired--it was poorly named, and
ncplane_translate_abs() does what it does, plus more, plus
more generally (it works on any y, x, not necessarily an
ncinput). update c++ wrappers #394.
4 years ago
nick black 6966632821
demo: hook up menu mouse support #309 4 years ago
nick black 6690bc6bb9
Unroll/roll up menus based on mouse #306 4 years ago
nick black c6a3f93691
ncmenu: check mouse clicks for presence #306 4 years ago
nick black a325a6d4b0
remove unnecessary c++ Visual() error check #378 4 years ago
nick black e7d0ce72dd
view: catch exception on Visual constructor #378 4 years ago
nick black 5a8107b788
ncdirect: preserve colors on sgr #391 4 years ago
nick black bb579d0d05
notcurses_directmode()->ncdirect_init() 4 years ago
nick black 314eba5530
reel: don't quit on NCKEY_RESIZE #390 4 years ago
nick black c0f25b2ba0
Fix up reel-demo input issues #390 4 years ago
nick black 3db9397df4 Merge branch 'master' of github.com:dankamongmen/notcurses 4 years ago
nick black 43a8fcf195 augh! fix hidden alignment problem 4 years ago
nick black c6f27f1bee
notcurses_resize() update docs #367 4 years ago
nick black e679816731 demo: set up input eventfd #390
When we process input in the demo, write a packet to an
eventfd we set up in input_dispatcher(). This way,
demo components can poll() on that. #390
4 years ago
nick black e6bbcd2e70
Selector: properly place scroll arrows #388
When the selector body was being sized by the header
or footer (as opposed to option+desc length), our scroll
arrows are misplaced. They now land properly. Mouse
clicks are properly placed now, and screenshots have been
updated in the guide.
4 years ago
nick black c87a9ed5dd
Gradients: set alpha, better prechecks #389
Gradients can't use palette-indexed color, so don't allow it
in either the foreground or background of any channels. All
channels must have the same alpha setting, which will be matched
in the gradient. #389
4 years ago
nick black 1030409096
move fill/stain routines into fill.c 4 years ago
nick black a39efb1d6d
move selector, menu documentation to book 4 years ago
nick black fce0d9d88d
README: send multimedia to book 4 years ago
nick black 13beb9703f
move some README content to the book 4 years ago
Marek Habersack 3467a0adef [C++] API sync
Added:

  * NCKey: `ScrollUp`, `ScrollDown` and `Return`
  * Plane: is_mouse_event (`ncplane_mouseevent_p`)
4 years ago
nick black 5d8da395b9
demo: Fix JSON output for multiple runs #387 4 years ago
nick black 0dc5456035
Emit JSON on -J arg to demo #387
Accept -J as a parameter requiring an option to notcurses-demo(1).
Update the man page and usage message to reflect this. Open the
specified file for binary writing with truncation at option parsing
time; fail out if we can't open it. At the end of the demo, write
the results out as JSON, using full precision for all values #387.
4 years ago
nick black 87cac84db2
remove obsolete FIXME 4 years ago
nick black b7a028569c
gradient: support default/palette #376 4 years ago
nick black 5b4c6c14e3
gradient: implement + test 1d fills 4 years ago
nick black 5f971a6baa
ignore Cargo.lock for libraries 4 years ago
nick black b6438e415d
poc/geom: three new stupid unicode tricks 4 years ago
nick black 4fb8500631
README: add link to mailing list 4 years ago
nick black 2c98013150
python: fix up seqnum reference 4 years ago
nick black 519f77dd7f
notcurses_refresh: resynthesize unoptimized stream #380 4 years ago
nick black fddff356a4
ncdirect_clear(): don't deref null clear 4 years ago
nick black 0a1f36cbfa
debian: add ncdirect_ new to symbols 4 years ago
nick black a09bdc4ade
Add seqnum field to ncinput #374 4 years ago
nick black ddd33fea31
ncdirect_move() doc, readme, python, c++ #382 4 years ago
nick black a626178b16
ncdirect: cursor movement / geom detection #382 4 years ago