Commit Graph

235 Commits (dbc060503cee353fd16fb617e0fb218b1f933a77)

Author SHA1 Message Date
nick black 7b5f4175eb
add nccell_cols(), deprecate nccell_width() 3 years ago
nick black 0a6fd661b4 set_rgb: unsigned unless we're clipping 3 years ago
nick black 0d289958f9
death to sigset_t #1967 3 years ago
nick black 1fae68d9c6
add NCPLANE_OPTION_FIXED #1909 3 years ago
nick black 12000dea27
throw some nonnull love into notcurses.h 3 years ago
Tomek Szczęsny 0baf4ea1b5
Relative cursor move (#1885)
Relative cursor move by @tomek-szczesny
3 years ago
nick black 92293dd402
adapt new python to NCCHANNEL 3 years ago
nick black 83d8724e63
updating CELL_ -> NC_ references 3 years ago
nick black 14a50cfa3f
add ncchannels_reverse, use it in ncmenu, add unit test #1878 3 years ago
nick black 8846e3cee2
ncdirect_putegc(), get true width in ncwidth #1899 3 years ago
nick black 00e28cc569
complete ncplane_cursor_move_yx() documentation 3 years ago
nick black 43f0a2e5c8
remove false comments on ncplane_move_yx() 3 years ago
nick black cd80b70594
add ncplane_moverel(), no unit tests though =[ #1881 3 years ago
nick black f1202df541
document ncplane_cursor_move_yx better #1882 3 years ago
nick black a749ede622
USAGE: elaborate on ncplane_set_*_palindex #1554 3 years ago
nick black aa716d6814
add NCSTYLE_BLINK back to documentation #1818 3 years ago
nick black 9f92986a6b always send DSRCPR at init, use it to verify u7
for NCOPTION_PRESERVE_CURSOR, we want to know the location
of the cursor at startup. go ahead and always send a DSRCPR
in terminal interrogation. if we get a reply to it, hey, we
just verified that the terminal knows DSRCPR.

if we find a u7 value in terminfo that's different from the
standard DSRCPR, we ought send that in addition. #1816
3 years ago
nick black 9d7f07771b
GTFO NCSTYLE_DIM, NCSTYLE_REVERSE #1818 3 years ago
nick black 8fc2a32990
remove NCSTYLE_{INVIS,BLINK,STANDOUT} #1818 3 years ago
nick black 041f97371f add stat for ASUs and send them #1582 3 years ago
nick black 379453c8ea
render piles to file/buffer
Replace notcurses_render_to_file() and
notcurses_render_to_buffer() with variants that work
on arbitrary piles (the former only worked on the standard
pile). Rewrite the former as trivial wrappers around the
latter, and deprecate the former. Closes #1770.
3 years ago
nick black e5662ac506 add and document sprixelbytes stat #1801 3 years ago
nick black d360cc1d1e ncvisual_from_rgb_{packed, loose}() #1767 3 years ago
nick black 3cb537c3fc
only list sgr styles as supported if we have sgr #1791 3 years ago
nick black 9ee120dfa2
elaborate documentation for notcurses_refresh #1769 3 years ago
nick black 0d7a5a5ef8 remove the majority of notcurses_check_pixel_support() calls #1469 3 years ago
nick black cadd4aefee s/CELL_ALPHA_/NCCELL_ALPHA_/g 3 years ago
nick black 608943bb95 reference nc->margin when we want margins, not stdplane #1615 3 years ago
nick black 6fcaad3c5d
generalize ncvisual_inflate() to ncvisual_resize_noninterpolative() #1738 3 years ago
nick black a6433caeaa add NCVISUAL_OPTION_NOINTERPOLATE #1576 3 years ago
Nick Black cd2b5de5fa
Panblitter ncplane_as_rgba() (#1697)
ncplane_as_rgba: genericize across blitters

ncplane_as_rgba() previously was implemented explicitly
in terms of NCBLIT_2x1. it now uses the `egcs` field of the
`blitset`. this supports NCBLIT_2x2 and NCBLIT_3x2 in
ncplane_rgba(). Closes #1490.
3 years ago
nick black d20a4d8104
ncdirect: restore colors properly following sgr #1703 3 years ago
nick black de502655c2
USAGE: indicate c syntax 3 years ago
nick black 50693fb812
add a section on hardware cursor to notcurses_init.3 #1681 3 years ago
nick black f2b26723c9
document notcurses_cursor_yx() #1681 3 years ago
nick black 6969652031
add ncinput_nomod_p() 3 years ago
nick black 42f26fcb1e ncls: update to prep_image() maxy/maxx #1661 3 years ago
nick black 6fd7a4cd52
convert a few 'cell' instances to 'nccell' in docs 3 years ago
nick black 346512ccdf
eliminate type-2 gclusters, sprixels no longer interact with fb #1656 3 years ago
nick black 8bd73378cf
add NCSCALE_INFLATE 3 years ago
nick black f080e1502b add ncplane_erase_region() 3 years ago
nick black 84c7aca04e
add ncblit_rgb_packed(), ncblit_rgb_loose() #1634 3 years ago
nick black 4f5a8480c0 document new option NCVISUAL_OPTION_CHILDPLANE #1603 3 years ago
nick black 55837bcb55
add nccell_width() to avoid calling utf8_egc_len externally 3 years ago
nick black 3eb004b61d s/channels/ncchannels/g #1570 3 years ago
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
3 years ago
nick black f4aa419a31
add notcurses_canhalfblock()/notcurses_canquadrant() #1575 3 years ago
nick black 6c7b40debf
add stats for sprixel emissions/elisions #1563 3 years ago
nick black c3c5b397a3
run ncvisual_resize() in bitmap tests #1559 3 years ago
nick black c875eb4544
clamp Sixel to max supported size #1550 3 years ago