Commit Graph

54 Commits

Author SHA1 Message Date
nick black
cff006f8ab
fix return value of output functions 2021-01-08 04:58:50 -05:00
nick black
54b44513c4
Wide EGC tweaks
Don't bias the nccell width by 1, or 0-length EGCs become
255 columns. We weren't actually using the width to drive
much anything until now, so this wasn't a problem, but it
is exposed as an error once we got rid of CELL_WIDE_ASIAN
and start looping through the actual egc column width.
Closes #1278, closes #1277
2021-01-03 17:42:28 -05:00
nick black
5636a146e4
Wide unit test: rewrite without CELL_WIDEASIAN_MASK #1277 2021-01-03 14:55:58 -05:00
nick black
fd2acde1b1 rename cell->nccell, keep alias #1200 2020-12-13 00:49:37 -05:00
nick black
ea771217fb
cell_load_char() unit tests #1176 2020-12-05 02:18:05 -05:00
nick black
8db3f77f5c Wide test: kill duplicate CHECK 2020-12-05 00:39:37 -05:00
nick black
0645fb3931
run cell_load_char()/egc32() through cell_load() #1176 2020-12-04 03:06:51 -05:00
nick black
03bcd1e01b kill enforce_utf8(), forcing notcurses_canutf8() 2020-11-28 23:55:17 -05:00
nick black
b6e5b60374 ncpile_create() not NCPLANE_OPTION_NEWPILE #1078 2020-11-23 22:58:05 -05:00
nick black
3ad9a40426 hook up piles #1078 2020-11-23 22:58:05 -05:00
nick black
eef6df8c0a death to horiz #1115 2020-11-17 23:42:36 -05:00
nick black
ff999ca268 wide tests: ncplane_new -> ncplane_create #1115 2020-11-17 23:42:36 -05:00
nick black
68dbfeafc8
add version unit test #1054 2020-10-10 20:33:23 -04:00
nick black
683217ef07 normalize style setters #1034 2020-09-29 13:09:44 -04:00
nick black
a4367fcfb5 rip out ncplane_ creation functions #985 2020-09-18 17:46:57 -04:00
nick black
e42dbdfd60 _stainable() -> _stained() #985 2020-09-18 02:02:08 -04:00
nick black
c5c608b22e add ncplane_putwc_stainable, ncplane_putwstr_stainable #985 2020-09-18 02:02:08 -04:00
nick black
b7a57eaab7 convert all channel rgb calls #985 2020-09-18 01:39:21 -04:00
nick black
4bb1f3fc85 mbswidth -> ncstrwidth() #985 2020-09-15 01:39:42 -04:00
nick black
2f28420034 rename ncplane_putsimple() -> ncplane_putchar() #912 2020-08-31 21:14:29 -04:00
nick black
c834e2a78d
cell_simple_p(): fix for htole() #979 2020-08-31 14:36:46 -04:00
nick black
5901fce433 unite putegc_yx+putc_yx into ncplane_put #961 2020-08-29 20:29:04 -04:00
nick black
161130986e Wide tests: downgrade many REQUIREs to CHECKs 2020-08-29 20:29:04 -04:00
nick black
954030ac83
add new RejectWideAsianPlaced unit test #967 2020-08-29 19:17:45 -04:00
nick black
c24ca8ab56
introduce ntole() #906 2020-08-27 06:59:11 -04:00
nick black
ed0d9d8a8e Wide unit tests; test other side 2020-08-20 21:32:31 -04:00
nick black
01249a0546 HigherGlyphAbides unit test 2020-08-20 20:18:49 -04:00
nick black
0f2bb4efc6
wide tests: remove netinet/in.h 2020-08-16 08:51:45 -04:00
nick black
16ff667325 blissful endianness-opacity
not caring about endianness is the opiate of the masses.
happy, happy masses. remove endianness.h and all its baleful
influence by explicitly breaking up the cell structure. #892
2020-08-16 01:44:36 -04:00
nick black
7811663223 inlined EGCs + styling unit tests #830 2020-08-15 17:38:20 -04:00
nick black
55baa55541 wide tests: kill one last allocation 2020-08-15 17:38:20 -04:00
nick black
7f8631b35c wide tests: death to cowardly copying 2020-08-15 17:38:20 -04:00
nick black
2656cad07a cell_duplicate_far() fix length issue 2020-08-15 17:38:20 -04:00
nick black
7ac3f68f4e cell_load: fix CELL_WIDEASIAN_MASK bug 2020-08-15 17:38:20 -04:00
nick black
1605416585 more egc-inline test fixes 2020-08-15 17:38:20 -04:00
nick black
97571e86af ncplane_putegc_yx() copies directly as opposed to going through putc() #797 2020-07-20 03:20:44 -04:00
nick black
5512158fc5
postpaint(): no need to replace nul with space #777 2020-07-10 11:15:23 -04:00
nick black
33667df40e
drone: set TERM for fedora 2020-06-28 07:00:20 -04:00
Nick Black
d52ced823c make Wide unit tests sensitive to local irregularities #741 2020-06-28 06:40:00 -04:00
nick black
b49d1ad838
rewrite all unit tests to use testing_notcurses() #718 2020-06-15 23:58:43 -04:00
nick black
3936d1b528
adapt callers of ncvisual_geom() 2020-06-12 00:53:34 -04:00
nick black
b2dcc50606
notcurses_options: fold bools into flags 2020-06-07 05:08:46 -04:00
nick black
0766007a77
tester: kill off inhibit_alternate_screen #651 2020-05-29 02:30:57 -04:00
nick black
6edc6f098f
streamline unit test common initialization 2020-05-17 07:57:21 -04:00
nick black
d9bb9b03af notcurses-tester: run passing tests in C locale #325 2020-05-11 05:59:55 -04:00
nick black
a571f4daaa
tests/wide.cpp: use modern range loop 2020-05-07 00:52:16 -04:00
nick black
9e28e14001
move enforce_utf8() into main 2020-04-18 03:00:25 -04:00
nick black
0a6f5d1a9f
enforce_utf8() for wide tests, duh 2020-04-18 01:59:21 -04:00
Nick Black
c6a9997554
Normalize ncplane_at_* / ncplane_set_base() (#479)
* ncplane_at_* and ncplane_at_cursor_*

We had notcurses_at_yx() expanding into three distinct parts of
the cell structure, and ncplane_at_yx() / ncplane_at_cursor()
writing directly to a cell. It was annoying to remember which
was which. The latter two now have a signature matching
notcurses_at_yx(), while the old functionality has been moved
to ncplane_at_yx_cell() and ncplane_at_cursor_yx(). #476
2020-04-18 00:09:14 -04:00
nick black
d98f89c167
check channels in WidePlaneAtopNarrow test #475 2020-04-14 10:50:53 -04:00