Commit Graph

54 Commits (de0b61925ef41c2e112580d4584962ca9eb089b9)

Author SHA1 Message Date
nick black cff006f8ab
fix return value of output functions 4 years ago
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
4 years ago
nick black 5636a146e4
Wide unit test: rewrite without CELL_WIDEASIAN_MASK #1277 4 years ago
nick black fd2acde1b1 rename cell->nccell, keep alias #1200 4 years ago
nick black ea771217fb
cell_load_char() unit tests #1176 4 years ago
nick black 8db3f77f5c Wide test: kill duplicate CHECK 4 years ago
nick black 0645fb3931
run cell_load_char()/egc32() through cell_load() #1176 4 years ago
nick black 03bcd1e01b kill enforce_utf8(), forcing notcurses_canutf8() 4 years ago
nick black b6e5b60374 ncpile_create() not NCPLANE_OPTION_NEWPILE #1078 4 years ago
nick black 3ad9a40426 hook up piles #1078 4 years ago
nick black eef6df8c0a death to horiz #1115 4 years ago
nick black ff999ca268 wide tests: ncplane_new -> ncplane_create #1115 4 years ago
nick black 68dbfeafc8
add version unit test #1054 4 years ago
nick black 683217ef07 normalize style setters #1034 4 years ago
nick black a4367fcfb5 rip out ncplane_ creation functions #985 4 years ago
nick black e42dbdfd60 _stainable() -> _stained() #985 4 years ago
nick black c5c608b22e add ncplane_putwc_stainable, ncplane_putwstr_stainable #985 4 years ago
nick black b7a57eaab7 convert all channel rgb calls #985 4 years ago
nick black 4bb1f3fc85 mbswidth -> ncstrwidth() #985 4 years ago
nick black 2f28420034 rename ncplane_putsimple() -> ncplane_putchar() #912 4 years ago
nick black c834e2a78d
cell_simple_p(): fix for htole() #979 4 years ago
nick black 5901fce433 unite putegc_yx+putc_yx into ncplane_put #961 4 years ago
nick black 161130986e Wide tests: downgrade many REQUIREs to CHECKs 4 years ago
nick black 954030ac83
add new RejectWideAsianPlaced unit test #967 4 years ago
nick black c24ca8ab56
introduce ntole() #906 4 years ago
nick black ed0d9d8a8e Wide unit tests; test other side 4 years ago
nick black 01249a0546 HigherGlyphAbides unit test 4 years ago
nick black 0f2bb4efc6
wide tests: remove netinet/in.h 4 years ago
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
4 years ago
nick black 7811663223 inlined EGCs + styling unit tests #830 4 years ago
nick black 55baa55541 wide tests: kill one last allocation 4 years ago
nick black 7f8631b35c wide tests: death to cowardly copying 4 years ago
nick black 2656cad07a cell_duplicate_far() fix length issue 4 years ago
nick black 7ac3f68f4e cell_load: fix CELL_WIDEASIAN_MASK bug 4 years ago
nick black 1605416585 more egc-inline test fixes 4 years ago
nick black 97571e86af ncplane_putegc_yx() copies directly as opposed to going through putc() #797 4 years ago
nick black 5512158fc5
postpaint(): no need to replace nul with space #777 4 years ago
nick black 33667df40e
drone: set TERM for fedora 4 years ago
Nick Black d52ced823c make Wide unit tests sensitive to local irregularities #741 4 years ago
nick black b49d1ad838
rewrite all unit tests to use testing_notcurses() #718 4 years ago
nick black 3936d1b528
adapt callers of ncvisual_geom() 4 years ago
nick black b2dcc50606
notcurses_options: fold bools into flags 4 years ago
nick black 0766007a77
tester: kill off inhibit_alternate_screen #651 4 years ago
nick black 6edc6f098f
streamline unit test common initialization 4 years ago
nick black d9bb9b03af notcurses-tester: run passing tests in C locale #325 4 years ago
nick black a571f4daaa
tests/wide.cpp: use modern range loop 4 years ago
nick black 9e28e14001
move enforce_utf8() into main 4 years ago
nick black 0a6f5d1a9f
enforce_utf8() for wide tests, duh 4 years ago
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
4 years ago
nick black d98f89c167
check channels in WidePlaneAtopNarrow test #475 4 years ago