Commit Graph

332 Commits

Author SHA1 Message Date
nick black
50f6cf72b2
[plane] properly initialize options in unit test 2021-11-17 00:06:54 -05:00
nick black
81a31c2a4b
[ncneofetch] remove screen dimensions, provide arch fallback #2341 #2336 2021-11-16 23:29:03 -05:00
nick black
12988bb556
add ImplicitDestroy and RefuseBoundCreatedPlane selector tests #2347 2021-11-16 23:28:09 -05:00
nick black
042c120cd2 add RefuseBoundCreatedPlane test #2347 2021-11-16 22:28:37 -05:00
nick black
656b6385d9 [reels] refuse an already-bound plane #2347 2021-11-16 22:28:37 -05:00
nick black
ae73463b91 [plot] work with widget tracking 2021-11-16 22:28:37 -05:00
nick black
bead8cbffc [widgettrack] hook up nctabbed, nctree, ncreel, nc[ud]plot #2342 2021-11-16 22:28:37 -05:00
nick black
416f2eb6df [plane] free unit test leaks 2021-11-16 22:28:37 -05:00
nick black
baae0c3d06 track widgets from planes #2342, hook up ncmenu 2021-11-16 22:28:37 -05:00
nick black
e20c7d1839
[ubuntu] try to get doctest compiling 2021-11-14 02:47:22 -05:00
nick black
d74f0583b8
[selector] free memory leaks in unit tests 2021-11-11 10:12:55 -05:00
nick black
f377e30300
[fdplane] constify args/env, kill unit test memory leaks 2021-11-11 10:08:03 -05:00
nick black
d51318f58c
[ncmenu] kill memory leaks in unit tests 2021-11-11 09:49:25 -05:00
nick black
5ff59ce421
[putstr] take size_t* for sbytes, not int* #2331 2021-11-10 22:43:44 -05:00
nick black
7dd9454fb8
ncvgeom unit tests: another cellpix{yx} implication 2021-11-09 09:14:39 -05:00
nick black
dcede32e5c
[ncvgeom unit tests] expect cellpix{xy} -> cdim{xy} #2332 2021-11-09 09:06:01 -05:00
nick black
60d14ef527
[vizgeom unit tests] cdim{yx} ought always be set #2332 2021-11-09 08:51:15 -05:00
nick black
fe924be5ef
ABI3 changes (#2333)
Long-planned changes for API/ABI3 #1777

* remove old-style notcurses_ rendering functions
* Make notcurses_render() a static inline wrapper around
 ncpile_render(). Remove the deprecated
 notcurses_render_to_file() and ncpile_render_to_file().
* ncstrwidth() becomes static inline wrapper #1777
* remove deprecated ncvisual_subtitle()
* kill ncvisual_inflate(), long deprecated #1777
* remove deprecated palette256 wrappers #1777
* kill ncplane_new() #1777
* remove deprecated renderfp field from notcurses_options #1777
* reorder ncstats fields to match documentation #1777
* kill deprecated style functions #1777
* ncplane_move{top, bottom} become static inline #1777
** ncplane_pixelgeom -> ncplane_pixel_geom() #1777
* ncstyle functions ought return uint16_t #1777 #2200
* ncvisualplane_create: provide new pile functionality #1462
* [heuristics] GNU screen 4x never has rgb
* [BitmapSmoothMove] only WARN in test until sixel supports this #2258
* contour: enable sextants
* interp PoC: clean up ncvisual #2266
* ncselector_options: constify string arguments
* Constify strings in selector/mselector_items
 Use internal types to track items within the
 selector/mselector widgets, rather than pressing the
 user-provided item structs into double-duty. With this
 change, we can constify the strings within those
 user-provided items. Do so, also removing the internal-side
 elements. Update documentation. Closes #2267.
* constify ncmenu_item/_section strings
* constify strings in nctabbed_options
* notcurses-demo FPS graph: back to straight seconds
* remove unused wchar_from_utf8()
* nstrwidth_valid(): properly initialize bytes/width
* [ncneofetch] use GetSystemInfo on Windows
2021-11-09 00:53:30 -05:00
nick black
12e01fdf5c [metric] prefix all defs with NC 2021-11-08 21:05:15 -05:00
nick black
c20e859a6d [python] API conversions 2021-11-08 21:05:15 -05:00
nick black
d29813457b stylemasks ought always be uint16_t 2021-11-08 21:05:15 -05:00
nick black
91420af5ce eliminate recursion in ncplane_polyfill_yx #2328 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
332bf71642
excise notcurses_debug() from stacking tests 2021-11-08 18:20:12 -05:00
nick black
f2a5ae589f
LoadVideoPixelScale -> Stretch 2021-11-07 01:06:26 -04:00
nick black
3a589e0f26 Cell unit tests: remove obsolete special-casing 2021-11-04 10:08:26 -04:00
nick black
7123b689ec [direct] more box unit tests 2021-11-04 10:08:26 -04:00
nick black
ed69204ee4 utf8_egc_len: only augment width once 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
e14b4d5f7c
Direct unit tests: add note about reversed u6 2021-11-03 18:28:06 -04:00
nick black
130f1f6adb
[EGCcore] be more aggressive about ZWJs 2021-11-02 13:09:01 -04:00
nick black
2be84dd3e8
fix up some memory leaks in unit tests 2021-11-01 22:34:04 -04:00
nick black
252bfec9c4
[visual unit tests] kill unit test memory leaks 2021-11-01 22:18:05 -04:00
nick black
9101ac9139
[nctree] plug leak of currentpath 2021-11-01 22:00:51 -04:00
Nick Black
6cc65f0bea unit tests: specify uint32_t for vector types 2021-11-01 21:57:05 -04:00
nick black
a9fd1542e4 [geom] properly copy alignments through #1684 2021-11-01 21:57:05 -04:00
nick black
b8a3016a66 Visual unit tests: cleanup 2021-11-01 21:57:05 -04:00
nick black
28a037b6c0 new unit test VisualCellGeometryStretching 2021-11-01 21:57:05 -04:00
nick black
bd4393ff1e new unit test VisualCellGeometryScaling 2021-11-01 21:57:05 -04:00
nick black
d65dd43670 new VisualCellGeometryNoScaling unit test 2021-11-01 21:57:05 -04:00
nick black
55eec67a23 pull wayward debug from Bitmaps unit test 2021-11-01 21:57:05 -04:00
nick black
0363139593 [ncvgeom] fix bug in unit test 2021-11-01 21:57:05 -04:00
nick black
b19847a06a [visual] extrinsic geometry unit tests 2021-11-01 21:57:05 -04:00
nick black
4028d3f56a ncvisual_geom(NULL, non-NULL) unit test 2021-11-01 21:57:05 -04:00
nick black
a0b34f7062 [core] introduce ncvisual_geom(), replacing ncvisual_blitter_geom() #1684 2021-11-01 21:57:05 -04:00
nick black
8a827224ba PixelRender unit test: stretch to available geometry 2021-10-28 06:42:19 -04:00
nick black
50dfab7b7b SixelsRoundtrip unit test: scale to available geometry #2304 2021-10-28 06:42:19 -04:00
nick black
e92aafd1b4 [sixeltests] use REQUIRE instead of CHECK on blit result #2304 2021-10-28 06:42:19 -04:00
nick black
ee784ece64
[tests] MB_CUR_MAX -> MB_LEN_MAX, no VLA #2301 2021-10-26 15:08:51 -04:00
nick black
7c365fcfd6
[blitters] unit test blitter->string lookup 2021-10-23 05:45:03 -04:00
nick black
d857fedf16 [tester] use NCLOGLEVEL_INFO for initial setup 2021-10-20 01:29:07 -04:00
nick black
1369a36710
unit tests: accomodate sixel runoff 2021-10-16 23:39:27 -04:00
nick black
2c8286c099 stacking tests: ncvisual_render() -> ncvisual_blit() #1462 2021-10-16 03:39:25 -04:00
nick black
e95e2fac66 ncvisual_render -> ncvisual_blit (nctetris) 2021-10-16 03:39:25 -04:00
nick black
be42ff909c ncvisual_render -> ncvisual_blit (core/test) #1462 2021-10-16 03:39:25 -04:00
nick black
2015e8ffc9
Constify strings in selector/mselector_items
Use internal types to track items within the
selector/mselector widgets, rather than pressing the
user-provided item structs into double-duty. With this
change, we can constify the strings within those
user-provided items. Do so, also removing the internal-side
elements. Update documentation. Closes #2267.
2021-10-13 19:19:43 -04:00
nick black
febaff364b
[BitmapSmoothMove] only WARN in test until sixel supports this #2258 2021-10-12 07:38:39 -04:00
nick black
676b92187b [tests] tighten up movement in BitmapSmoothMove #1682 2021-10-11 03:28:34 -04:00
nick black
56fffba757 [kitty] pass pixel offsets through to sprixel_load() #1682 2021-10-11 03:28:34 -04:00
nick black
9b0bf6af23 BitmapSmoothMove unit test #1682 2021-10-11 03:28:34 -04:00
nick black
5f9d88fa89 [tests] use universal initialization for ncvisual_options #1682 2021-10-08 01:56:22 -04:00
nick black
28d357d252
replace constant with KKEYBOARD_POP 2021-10-06 22:13:07 -04:00
nick black
a2837a9754
fix unit test for ncplane_move_family() #2232 2021-10-04 05:36:53 -04:00
nick black
a40c7a5352
FamilyBottom unit test #2232 2021-10-04 05:20:18 -04:00
nick black
e613b81b82
ncplane_move_family_{below, above}() with unit tests #2232 2021-10-04 05:16:58 -04:00
nick black
73b3a43fc7
[notcurses-tester] dump geometry after init #2228 2021-10-03 21:39:52 -04:00
nick black
284bbd4723
notcurses-tester: print TERM earlier #2228 2021-10-03 21:35:41 -04:00
nick black
a5397ea19a [subproc] kill FIXME; set pipes O_CLOEXEC manually in absence of pipe2() 2021-09-26 04:56:06 -04:00
nick black
828c06ffde ncplane_erase_region: unit tests 2021-09-21 18:32:39 -04:00
nick black
72757044da [ncplane_erase_region] generalize #2181 2021-09-21 18:32:39 -04:00
nick black
ea5da346f0
Add keytype indicator to notcurses-input #2182 2021-09-19 21:01:40 -04:00
nick black
e12aceccce [input] break up events #2174 2021-09-18 11:21:04 -04:00
nick black
1689365b6c
PixelWipe unit test: fix for sixel-based terminals 2021-09-16 06:29:01 -04:00
nick black
a3ed82ccff
honor NCOPTION_DRAIN_INPUT 2021-09-16 01:07:19 -04:00
nick black
e968b3972c
fills unit test: require nccell_strdup() success 2021-09-03 05:37:32 -04:00
nick black
c2616c6cbb
Unit tests for bitmap wandering offscreen to the left and right #1646 2021-08-28 02:11:08 -04:00
nick black
dd916d54eb
new unit test BitmapMoveOffscreenUp #1405 2021-08-24 02:05:47 -04:00
nick black
d7d9f7bd92
add BitmapMoveOffscreen unit test #1646 2021-08-24 02:03:02 -04:00
nick black
6ee6a68754 poc multiselect/selector: allow mouse_enable failure 2021-08-24 01:56:12 -04:00
nick black
b8c01eacc8 tighten up include paths, libgpm connect #1986 2021-08-24 01:56:12 -04:00
nick black
f4bac90a17
ncls: properly separate paths #2063 2021-08-17 17:01:22 -04:00
nick black
3d829846cc
admit pixel_draw_late for Bitmaps tests 2021-08-13 22:41:27 -04:00
nick black
be3704621c
notcurses-tester: work in as few as 50 columns #2042 2021-08-09 23:10:02 -04:00
nick black
34e6abc133 notcurses-tester: yank out std::filesystem 2021-08-08 03:53:42 -04:00
nick black
12858e6f52
unit tests for subplane scrolling #1951 2021-08-06 21:25:03 -04:00
nick black
27f1822664
disable alpine edge drone builder for a minute 2021-08-05 10:00:37 -04:00
nick black
862b2504ea
investigating alpine unit test failure... 2021-08-05 07:34:22 -04:00
nick black
19797b3859 everybody's movin', everybody's groovin', baby #1977 2021-08-05 06:39:09 -04:00
nick black
305e8fceea
move call to termname() into interrogate_terminfo() #2023 2021-08-05 00:56:58 -04:00
nick black
24d7d6d995
start merging in the fauxmemstream branch #1977 2021-08-04 14:59:37 -04:00
nick black
cdb884a787 don't test unicode 13 on apple 2021-08-02 23:13:31 -05:00
nick black
6f0830c29a
force zero-width-joins #2016 2021-08-02 09:00:01 -04:00
nick black
6ad09dd30c
add unit test for emitting NUL cell #2002 2021-07-30 19:14:54 -04:00
nick black
7b5f4175eb
add nccell_cols(), deprecate nccell_width() 2021-07-26 19:39:15 -04:00
nick black
4f1de02710
replace random() with rand() for windows goodness 2021-07-24 15:18:02 -04:00
nick black
8332ff060c
windows: no langinfo.h 2021-07-22 18:13:22 -04:00
nick black
873ee6f227
windows cleanups 2021-07-21 22:29:19 -04:00
nick black
3dbc5645f7 create_png_mmap: accept a file descriptor 2021-07-15 05:51:51 -04:00
nick black
a55a37a838 write PNG IDAT and IEND chunks, unit test 2021-07-15 05:51:51 -04:00