Commit Graph

182 Commits

Author SHA1 Message Date
nick black
d29813457b stylemasks ought always be uint16_t 2021-11-08 21:05:15 -05:00
nick black
0231768406 prefix qprefix(), bprefix(), iprefix() with nc- 2021-11-08 21:05:15 -05:00
nick black
83ff2cfe5a unsigned geometries 2021-11-08 21:05:15 -05:00
nick black
0f5aec510a
[mice] support for pure motion events
Deprecate notcurses_mouse_{enable, disable}. Reimplement
them for now as wrappers around notcurses_mice_enable().
New function notcurses_mice_disable() is a static inline
wrapper around notcurses_mice_enable(). The latter
function takes an unsigned bitmask of event types. We
now turn on the "all motion" tracking DECSET if
NCMICE_MOVE_EVENT is requested. Update the documentation,
and kill some obsolete lines. Add the ypx and xpx fields
to ncinput, to indicate pixel offset within a cell. Add
nckey NCKEY_MOTION for button-free motion events. Update
notcurses-input to pass NCMICE_ALL_EVENTS and decode
NCKEY_MOTION. Only emit mouse sequences when connected
to a TTY (or GPM). Closes #2320.

Request RGB XTGETTCAP.

Fix bug in error check in notcurses_render_to_buffer().

Decode multiple XTGETTCAP responses.
2021-11-05 08:32:35 -04:00
nick black
3792dd5592 [mergeplane] 0 means remainder #1696 2021-11-04 10:08:26 -04:00
nick black
042d810722 [ncpp] update to match new unsigned signatures #1696 2021-11-04 10:08:26 -04:00
nick black
d80884ea48 normalize geometry for ncvisual_from_plane, ncplane_contents, and ncplane_as_rgba() #1696 2021-11-04 10:08:26 -04:00
nick black
a0b34f7062 [core] introduce ncvisual_geom(), replacing ncvisual_blitter_geom() #1684 2021-11-01 21:57:05 -04:00
nick black
be42ff909c ncvisual_render -> ncvisual_blit (core/test) #1462 2021-10-16 03:39:25 -04:00
nick black
41cf28b775
[NCPP] restore Visual::subtitle() 2021-10-10 20:49:00 -04:00
nick black
2148bcc4f2
Revert "[nckeys] move from PUA-B to 'plane 18' #2247"
This reverts commit e83f1f5ba3.
2021-10-09 11:07:26 -04:00
nick black
e83f1f5ba3
[nckeys] move from PUA-B to 'plane 18' #2247 2021-10-09 11:06:51 -04:00
nick black
5f82a49065
[tetris] drop Release events 2021-10-08 17:41:00 -04:00
nick black
66d6913b69
[ncpp] express EvType enums 2021-10-07 04:04:04 -04:00
initramfs
671656ea80 fix ncpp throwing heap allocated exceptions 2021-09-27 17:34:22 -04:00
nick black
ea5da346f0
Add keytype indicator to notcurses-input #2182 2021-09-19 21:01:40 -04:00
nick black
6162ba3943 restore compatibility ncvisual_subtitle() 2021-07-27 15:47:21 -04:00
nick black
1448960cd5 start handling type-1 DVB subtitles #1311 2021-07-27 15:47:21 -04:00
nick black
0d289958f9
death to sigset_t #1967 2021-07-25 00:38:33 -04:00
nick black
31b208502a
[ncpp] Direct constructor: accept flags #1981 2021-07-24 16:12:52 -04:00
nick black
15b9b64cad
char32_t is C++, not C -- move to uint32_t 2021-07-12 18:01:41 -04:00
nick black
75cee68631
Cell.hh: stop exposing implementation details 2021-07-10 17:51:06 -04:00
nick black
6ba67a6f21
accept NULs in is_control_egc(), fixing notcurses-input 2021-06-27 07:52:33 -04:00
nick black
9d7f07771b
GTFO NCSTYLE_DIM, NCSTYLE_REVERSE #1818 2021-06-24 02:13:57 -04:00
nick black
9395245b31
ncpp::mergedown: don't allow NULL dest anymore 2021-06-23 22:03:05 -04:00
nick black
5998b965c4
we've not supported NCSTYLE_PROTECT since forever 2021-06-23 21:26:29 -04:00
nick black
8fc2a32990
remove NCSTYLE_{INVIS,BLINK,STANDOUT} #1818 2021-06-23 21:23:12 -04:00
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.
2021-06-22 01:17:55 -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
266ed71c0b
ncdirect_stream: fix c++ wrapper's error guard 2021-04-18 01:28:11 -04:00
nick black
b070b69eb2
get last remaining cell_ functions -> nccell_ #1532 2021-04-15 22:29:53 -04:00
nick black
7ad5219fa2
convert another crop of cell_ to nccell_ #1532 2021-04-15 22:20:16 -04:00
nick black
d2394f9c63
c++ wrapper for direct-mode streaming #1515 2021-04-14 18:48:53 -04:00
nick black
32500239ac
cell_extract() -> nccell_extract() 2021-04-14 10:30:22 -04:00
nick black
96ac640733
cell->nccell 2021-04-14 09:31:50 -04:00
nick black
657ed15632
cell_on_styles -> nccell_on_styles() #1532 2021-04-14 09:05:00 -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
ff76dba6ed
cell_strdup -> nccell_strdup 2021-04-10 09:21:52 -04:00
nick black
d504e972cc
cell_release -> nccell_release 2021-04-10 09:09:56 -04:00
nick black
53894caccb add ncdirect_stream #1346 2021-04-10 04:41:14 -04:00
Nick Black
04b1ba8ed2
Dankamongmen/unify geom (#1514)
deprecate ncvisual_geom() in favor of new ncvisual_blitter_geom(), which allows caller to get the blitter used. replace the checks and calculations in ncvisual_render() with a call to ncvisual_blitter_geom(), unifying the two paths (and eliminating several bugs in the unloved ncvisual_geom()).
2021-04-10 04:04:02 -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
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
f28d579016 [ncpp] add ncdirect_cursor_yx() wrapper 2021-03-24 05:22:15 -04:00
nick black
9728e79396 [ncplayer] obey margins in direct mode #1411 2021-03-14 22:48:47 -04:00
nick black
d99b16a1ba ncpp: error_guard<int> in get_dim_x/y() #1413 2021-03-14 22:48:47 -04:00
nick black
b9382231e2
c++: pass self on reparenting, not nullptr 2021-03-11 22:37:54 -05:00
nick black
53c52e30ff remove c++/rust channel wholesalers 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