Commit Graph

25 Commits

Author SHA1 Message Date
nick black
14d6129007 take-no-prisoners overhaul of ncplane_puttext() #829 2020-08-22 12:51:32 -04:00
nick black
df3dc7f8e7 LayoutNewlinesAtBorders unit test #829 2020-08-22 12:51:32 -04:00
nick black
adab5ba382 LayoutNewlines unit test #829 2020-08-22 12:51:32 -04:00
nick black
97f3676588
layout unit tests: fill out checks #829 2020-08-21 00:02:22 -04:00
Nick Black
c3508d524b
ncplane_puttext() work for longer lines (#880)
* The zoo demo made manifest that we had some serious problems handling sequences of longer lines in ncplane_puttext(). This remedies most of the problems, though it's not yet perfect. #871
* Guard notcurses* for NULL in log*() #878 #879
* Fix memory leak in ncdirect_dump_plane()
2020-08-12 02:43:52 -04:00
nick black
384232efd1
layout tests: enforce utf8 where necessary 2020-07-26 23:25:34 -04:00
nick black
b9ad7b9bd5 add LayoutTransPlanarWide unit test #815 2020-07-23 21:21:11 -04:00
nick black
357cba3843 ncplane_puttext: all unit tests work #815 2020-07-23 21:21:11 -04:00
nick black
243cbd6a92 fix LayoutFillsPlaneNoSpaces problems #815 2020-07-23 21:21:11 -04:00
nick black
1664e64617 add LayoutCrossBoundaryWide unit test #815 2020-07-23 21:21:11 -04:00
nick black
4adde41b05 Get LayoutFillsPlaneNoSpaces test working #815 2020-07-23 21:21:11 -04:00
nick black
bae1cedd6b Ncpp tests: supply NCOPTION_SUPPRESS_BANNERS | NCOPTION_INHIBIT_SETLOCALE 2020-07-23 21:21:11 -04:00
nick black
a70cbb894c get complete widechar ncplane_puttext() working #815 2020-07-23 21:21:11 -04:00
nick black
380ebc7e6e add wide ncplane_puttext unit tests #815 2020-07-23 21:21:11 -04:00
nick black
255b404842
ncplane_puttext(): start long words early
If we're fed a word that in and of itself is wider than
the text layout area, and it is not the first word on the
row on which it starts, go ahead and start it there, as
opposed to breaking the line. #720

Also, remove sgr from test suite, as it's not a notcurses
application.
2020-07-22 02:11:09 -04:00
nick black
6b1b8d1695 ncplane_puttext: unit tests for scrolling #719 2020-07-03 22:50:34 -04:00
nick black
84746f1f31
OTHERS: add termbox, termion, pancurses 2020-07-03 22:42:34 -04:00
nick black
5b99ebc9fc
ncplane_puttext(): four more unit tests #691 2020-06-16 02:47:21 -04:00
nick black
6ff0bec2fa
ncplane_puttext: more unit tests, check for spcae before width #691 2020-06-16 02:42:08 -04:00
nick black
cfe764bd57
ncplane_puttext() unit test + fix #691 2020-06-16 02:12:11 -04:00
nick black
97517d0473
ncplane_puttext: another test, another bug #691 2020-06-16 01:22:40 -04:00
nick black
d1f8b9237d
ncplane_puttext: new unit test, fix breakage #691 2020-06-16 01:08:48 -04:00
nick black
2be041b1f4
Beef up ncplane_puttext() tests, fix a problem #691 2020-06-16 00:30:02 -04:00
nick black
b49d1ad838
rewrite all unit tests to use testing_notcurses() #718 2020-06-15 23:58:43 -04:00
Nick Black
28431914a8
First go at ncplane_puttext() (#690)
Very simple take at ncplane_puttext(), a new function for linebroken text. Also some very basic unit tests. I doubt this works very well yet, but it handles the simplest cases #682. Added nclog(), internal function for logging. #520
2020-06-08 03:01:58 -04:00