nick black
7b51bab79a
add resizecb to ncplane_options struct #869
4 years ago
nick black
73f9973a2c
Plane.hh: fix up indentation #1020
4 years ago
nick black
36aed3c521
add ncplane_create() + ncplane_options #1020
4 years ago
nick black
607c03edc4
rename _rgb_clipped functions rgb8_clipped
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
0e34bec3fb
start converting rgb->rgb8 #985
4 years ago
nick black
4bb1f3fc85
mbswidth -> ncstrwidth() #985
4 years ago
nick black
dab7247cdd
mbswidth: use utf8_egc_len() for segmentation #1014
4 years ago
nick black
dca9db9687
ncreel: conform to the New Way #627
4 years ago
nick black
c3e5e47a2a
ncreader: conform to the New Way #627
4 years ago
nick black
4f04f1bc31
remove bgchannels field from selector_options #627
4 years ago
nick black
306948507f
ncmultiselect: normalize per new widget API #627 #1006
4 years ago
nick black
8839d44454
selector: transfer ownership of ncplane #1006 #627
4 years ago
nick black
a801f975a6
all widget creators get attribute ((nonnull)) #627
4 years ago
nick black
3f726edd4c
all widgets check flags and warn on undefined #627
4 years ago
nick black
89a4b6f726
all widget options structs end in flagword #627
4 years ago
nick black
af05ae7a92
man pages: document NCREADER_OPTION_CURSOR
4 years ago
nick black
f88c8ae79c
expose ncvisual_default_blitter(), name blitter in notcurses-view #995
4 years ago
nick black
3afcfc97d6
ncreader: define NCREADER_OPTIONS_EMACSKEYS
4 years ago
nick black
2f28420034
rename ncplane_putsimple() -> ncplane_putchar() #912
4 years ago
nick black
4c7a1d0427
ncdirect_init: add flags parameter #976
4 years ago
nick black
5fc6705ce3
add notcurses_ucs32_to_utf8()
4 years ago
nick black
5901fce433
unite putegc_yx+putc_yx into ncplane_put #961
4 years ago
nick black
0cee9bdb5c
ReelsGap unit test #901
4 years ago
nick black
66f80c77f9
add ncplane_y() and ncplane_x()
4 years ago
Nick Black
d4ad59f285
FreeBSD compilation fixes
4 years ago
nick black
9f84c1524e
cell_load_simple: need an ntole() #906
4 years ago
nick black
c24ca8ab56
introduce ntole() #906
4 years ago
nick black
c66d8f52d5
Endianness fixes for inlined egcs #906
4 years ago
nick black
8f65211bf8
declare ncdirect input layer #919
4 years ago
nick black
9d75f575db
ncplane_set_[fb]channels
4 years ago
nick black
70a28feb63
ncreader: horizontal scrolling mostly works #839
4 years ago
nick black
7cbb2e9110
zoo demo: show cursor in reader box #835
4 years ago
nick black
a53d5a21a8
disable/enable cursor for rasterize
4 years ago
nick black
cab19cf790
Cursor work (placement, drop RETAIN_CURSOR) #953
...
notcurses_enable_cursor() now accepts placement arguments.
both it and notcurses_disable_cursor() now return int rather
than void. add notcurses_cursor_move_yx().
4 years ago
nick black
df33f381e5
c++ wrappers: cursor_{en,dis}able, iprefix() #952
4 years ago
nick black
4dd1d6a4c8
Annihilate nc_err_e and all infrastructure #948
4 years ago
nick black
026b94969d
cffi heap allocations are zero-initialized #942
4 years ago
Nick Black
73dc0a7d69
Zoo 2, electric boogaloo ( #939 )
...
* Reimplement the widget zoo demo. The previous PoC
was a multithreaded monster with behavior dependent
on screen geometry. Replace it with a single thread state
machine. Closes #936 .
* Support titles for ncplot. Adds title to the ncplot_options
struct, which may be NULL. Closes #941 .
* Properly color ncplot according to maxchannels and
minchannels. Closes #940
* Add tools/function-table.sh script for generating public API list.
4 years ago
nick black
32d352173b
ncdirect_flush: struct ncdirect is const
4 years ago
nick black
14d6129007
take-no-prisoners overhaul of ncplane_puttext() #829
4 years ago
nick black
5c533c9f1a
ncplot: support legend styling
4 years ago
nick black
6bb8f447b5
add ncdirect_flush() #926
4 years ago
Nick Black
359ad1d36d
Generalized mergedown #779 ( #932 )
...
* Rename ncplane_mergedown -> ncplane_mergedown_simple()
* New ncplane_mergedown(), fully general projection of src to dst
4 years ago
nick black
567ad27455
add comment to ncdirect_putstr() about flushing #926
4 years ago
nick black
706d492ecd
add channels_set_*_palindex()
4 years ago
nick black
2e5a8b78d5
add trivial new iprefix()
4 years ago
Nick Black
e1cf346ddb
internalize highgradient_sized implementation #920 ( #922 )
...
internalize highgradient_sized implementation #920
4 years ago
nick black
1e334fa63e
new 'gradients' PoC #920
4 years ago
nick black
05da44b06b
hide blending functions #917
4 years ago
José Luis Cruz
3e3c8c1514
minor fix: use already defined variable
4 years ago
José Luis Cruz
c4498e485e
proposal to remove the comment and update the type
...
Maybe the type may reflect that it's not supposed to be a long now.
Although for what I've learnt about C, in practice it will probably still be a long. And I can't be sure whether in some platforms where it will indeed be a short the code will keep compiling, so maybe it's safer just to remove the outdated comment, or whatever you decide.
I'm just finding things while I work in the bindings =) And I was surprised to learn about the little guarantees C gives regarding the types sizes...
4 years ago
nick black
a2c95814b7
Remove cell_simple_p()
...
Get notcurses-tetris working again, since its collision
detection relied on simple vs non-simple EGCs, which are
no longer an operative concept. Closes #899 .
4 years ago
nick black
18d79c195d
python: get us linking once more...
4 years ago
nick black
f9eed1c412
palette_size is unsigned #891
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
3b76db1166
fuck the bullshit it's time to throw down
4 years ago
nick black
40e85c4143
rotate: use cell_extended_gcluster() #830
4 years ago
nick black
3f142961b3
comments
4 years ago
nick black
226c00c74d
egcelide: detect endianness, define NCSTYLE_* accordingly
4 years ago
nick black
fb8efe03e0
cell_strdup(): fix for inline egcs
4 years ago
nick black
b0f7f36995
egc inlining #830
4 years ago
nick black
26899f3544
s/8 bit/8-bit/g
4 years ago
José Luis Cruz
e596f9230f
fix ncpixel alpha mask
4 years ago
nick black
52103af364
Cell: overlap RGB and palette indices #884
4 years ago
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()
4 years ago
Nick Black
e7ad2829e9
Merge branch 'master' into joseluis-patch-1
4 years ago
joseLuís
7070e532d6
fix typos
4 years ago
joseLuís
7abda11404
add comments for ncpixel functions
4 years ago
José Luis Cruz
7bd29c9c17
fix return types
...
I bet those two return types shoud be unsigned
4 years ago
joseLuís
7790913d2f
fix typos & improve comments
4 years ago
Nick Black
11d6a4eb89
New reel layout algorithm #818 ( #870 )
...
New reel layout algorithm based on trimming and sifting. Fixes the original issue of #818 , though I'm not marking that bug fixed until I've resolved the little issues remaining with this one.
Back off CMake version dependency, see if we can get by with 3.11.4 for EPEL8 #851
Simplify tablet drawing tremendously by separating tablet border and data planes. Callbacks no longer need worry about the borders; they can simply fill the plane they're handed. #833
Improve notcurses_debug() a bit
Add ncplane_new_named() and friends to expose plane naming to the user.
Add internal ncplane_genocide() to kill a plane and all its bound descendents
New industrial-strength ncreel unit testing
notcurses-ncreel now accepts -ln for log level n
Add ncplane_parent() and ncplane_parent_const()
4 years ago
joseLuís
2842ffb751
add remaining channel functions
4 years ago
nick black
3bb95824fc
update some terminology
4 years ago
nick black
9ae3fe4728
update some terminology
4 years ago
nick black
4c822f80a9
comment and move ncpixel API
4 years ago
José Luis Cruz
7aef3e4fca
fix typo
...
foreground > background
4 years ago
nick black
c618096083
ncselector_redraw(): don't call notcurses_render() #627
4 years ago
nick black
ead60d06cc
unexport cell_egc_idx()
4 years ago
Marek Habersack
2fabe85e6a
[C++] API sync
...
Been a while, apologies :)
Added:
* Direct: fg_palindex (`ncdirect_fg_palindex`)
* Direct: bg_palindex (`ncdirect_bg_palindex`)
* Direct: get_palette_size (`ncdirect_palette_size`)
* Direct: putstr (`ncdirect_putstr`)
* Direct: hline_interp (`ncdirect_hline_interp`)
* Direct: vline_interp (`ncdirect_vline_interp`)
* Direct: box (`ncdirect_box`)
* Direct: rounded_box (`ncdirect_rounded_box`)
* Direct: double_box (`ncdirect_double_box`)
* Direct: canopen_images (`ncdirect_canopen_images`)
* Direct: canutf8 (`ncdirect_canutf8`)
* Menu: get_mouse_selected (`ncmenu_mouse_selected`)
* NotCurses: version_components (`notcurses_version_components`)
* NotCurses: str_blitter (`notcurses_str_blitter`)
* NotCurses: str_scalemode (`notcurses_str_scalemode`)
* NotCurses: lex_margins (`notcurses_lex_margins`)
* NotCurses: lex_blitter (`notcurses_lex_blitter`)
* NotCurses: lex_scalemode (`notcurses_lex_scalemode`)
* NotCurses: render_to_file (`notcurses_render_to_file`)
* Plane: putstr_stainable (`ncplane_putstr_stainable`)
* Plane: printf_stainable (`ncplane_printf_stainable`)
* Plane: vprintf_stainable (`ncplane_vprintf_stainable`)
* Reel: offer_input (`ncreel_offer_input`)
Changed:
* Direct: set_fg_alpha uses `unsigned alpha`
* Direct: set_bg_alpha uses `unsigned alpha`
* Plane: set_fg_alpha uses `unsigned alpha`
* Plane: set_bg_alpha uses `unsigned alpha`
* Root: made `error_guard` and `error_guard_cond` static
4 years ago
nick black
835a62361d
cell_nobackground_p(): load time, 5% perf win =] =] =] #838
4 years ago
nick black
2dcab374c4
mojibake: fix some row overruns #842
4 years ago
nick black
78a7b4d255
constify ncreader_options->egc
4 years ago
nick black
b8e6458de1
Revert "start working through notcurses.h with inlined utf8 #830"
...
This reverts commit 17b6706d3e
. It
belonged on a branch, and was not intended for master. #830
4 years ago
nick black
17b6706d3e
start working through notcurses.h with inlined utf8 #830
4 years ago
nick black
7174a84e94
zoo: add multiselector
4 years ago
nick black
bac02bccd0
selector/multiselect: kill itemcount options field #831
4 years ago
nick black
17e8f62eb9
cell_no{fore/back}ground() was never intended for export
4 years ago
nick black
6ea968c522
declare ncmenu_mouse_selected() #819
4 years ago
nick black
97571e86af
ncplane_putegc_yx() copies directly as opposed to going through putc() #797
4 years ago
nick black
104bbfef50
add notcurses_lex_blitter()
4 years ago
nick black
765ff89a3b
notcurses_str_blitter(): rewrite using objects
4 years ago
nick black
37ceb753bf
notcurses-view: print blitter name #805
4 years ago
Nick Black
dbc83c41b3
linuxconsole PoC ( #791 )
...
* use ioctl(KDGETMODE) to detect Linux console
* diagnostic on KDGETMODE
* add logdebug()
* unit test for notcurses_drop_planes(), add ncplane_putnstr_aligned()
* linuxconsole PoC
* linuxconsole: dump unicode->font table
* linuxconsole: explode glyphs
* linuxconsole: show 7 glyphs per 'line'
* linuxconjammer: shim console font with half blocks
* signals: handler for SIGTERM
* man pages: update notcurses_init() for options
* add NCOPTION_NO_FONT_CHANGES #201
4 years ago
nick black
5cf912feb6
ncplane_printf_stainable() and _vfprintf_stainable() #754
4 years ago
nick black
4a97c139e6
add ncplane_putstr_stainable() #754
4 years ago