joseLuís
27628e961a
rust: improve bindings
4 years ago
joseLuís
a40cabb9d0
rust: move integration tests out of lib.rs
4 years ago
joseLuís
c8316d75ae
rust: continue improving bindings and API
...
- use libc types and functions directly when possible
- char32_t -> u32 -> char
- size_t -> u64
- free()
- strcmp()
NOTE: it seems libc::timespec doesn't work with notcurses_getc()
- rename types
- Input -> NcInput
- Scale -> NcScale
- `suppuabize` function is now private.
- `bindings` module is now public.
- improve comments.
4 years ago
joseLuís
98a2fcf336
rust: explicit bindgen imports for a better world
4 years ago
joseLuís
4beec0845f
rust: type changes
...
- rename types in order to make them more similar to the original ones,
and so that they play better alongside the higher types defined by
notcurses-rs.
- Plane -> NcPlane
- DirectMode -> NcDirect
- DirectModeFlags -> NcDirectFlags
- FullMode -> Notcurses
- Align -> NcAlign
- Blitter -> NcBlitter
- Scale -> NcScale
- make `types` module re-exportable.
- rename nc module to notcurses.
- improve comments.
4 years ago
joseLuís
d59d05990b
rust: direct mode changes
...
- rename ncdirect_start to ncdirect_new
- add direct mode option flags
- fix examples
- refactor comments
4 years ago
joseLuís
94827c12a2
rust: update dependencies
4 years ago
joseLuís
fed2d7cb9b
rust: fix comments
4 years ago
joseLuís
e8ff092f50
rust: fix input; add constructor
4 years ago
joseLuís
2f3d99e4e7
rust: fix visual
4 years ago
joseLuís
cfb2bf0824
rust: add input module with 1 static function
4 years ago
joseLuís
09bdf6ebd4
rust: add visual module
4 years ago
joseLuís
cb16c52eef
rust: review functions; update headers
4 years ago
joseLuís
40621b7b95
rust: finish converting missing rgb calls
4 years ago
joseLuís
42250179f3
rust: add `Blitter` and `Scale` types
4 years ago
nick black
8189d21709
v2.0.2
4 years ago
nick black
a4546c86e3
v2.0.1
4 years ago
nick black
65974aeb0b
v2.0.0
4 years ago
nick black
8c9611d085
v1.7.6
4 years ago
nick black
c6c157a5ad
notcurses_stats_alloc() everywhere
4 years ago
nick black
20a49d053d
v1.7.5
4 years ago
joseLuís
bcc5481899
rust: update example
...
- use ncdirect_flush function for flushing
4 years ago
joseLuís
5be9edd6f4
rust: convert all rgb calls & new plane functions #1024
...
- add (TBD) ncplane_putchar, ncplane_putchar_yx
- delete ncplane_bound, ncplane_new, ncplane_pusimple & ncplane_putsimple_yx
- rename `.*_[bf]g.*_rgb` → .`*_[bf]g.*_rgb8`
- rename `.*_[bf]g` → .`*_[bf]g.*_rgb`
4 years ago
joseLuís
a09ed747ca
rust: update example direct-cursor
4 years ago
nick black
f02263e977
v1.7.4
4 years ago
nick black
21b8a50da0
rust: s/NCCHANNEL_ALPHA_MASK/CHANNEL_ALPHA_MASK/g
4 years ago
nick black
97dc50db1a
kill stray entry in NEWS
4 years ago
nick black
4459efa216
v1.7.3
4 years ago
nick black
e42dbdfd60
_stainable() -> _stained() #985
4 years ago
nick black
bc097a5674
v1.7.2
4 years ago
nick black
70f062aff5
v1.7.1
4 years ago
nick black
64fe8f6c07
v1.7.0
4 years ago
nick black
4c7a1d0427
ncdirect_init: add flags parameter #976
4 years ago
nick black
c93243fd54
v1.6.20
4 years ago
nick black
e92b7fd6ea
v1.6.19
4 years ago
nick black
6526e58c00
v1.6.18.4
4 years ago
nick black
6ea73e6e45
v1.6.18.3
4 years ago
nick black
550c02d8ac
v1.6.18.2
4 years ago
nick black
d11d8175d0
v1.6.18.1
4 years ago
nick black
6d7f9eb501
v1.6.18
4 years ago
nick black
026b94969d
cffi heap allocations are zero-initialized #942
4 years ago
joseLuís
1e6558fed9
new type aliases FullMode & Input
4 years ago
joseLuís
246cde91f9
+notcurses_align & modify ncplane_align #937
4 years ago
nick black
4ebf8f748c
v1.6.16
4 years ago
joseLuís
eab553d3d1
rust: update libc
4 years ago
joseLuís
2c1c150969
rust: add more type aliases, format
...
add new type aliases for: cell, ncplane, palette256, ncalign_e &
ncdirect + alignment constants.
4 years ago
joseLuís
ed748a5162
rust: new example: direct cursor
...
issue: only updates the screen after a newline
4 years ago
joseLuís
8c2d7bc5ac
rust: EGC type safe wrapping for real this time
4 years ago
joseLuís
73961c04ce
rust: rename ffi:: namespace to nc::
...
+rustfmt
4 years ago
joseLuís
9dc847c8b5
rust: add simple wrapper over ncdirect_init
4 years ago
joseLuís
d17460b875
rust: del uneeded alias
4 years ago
joseLuís
e975211a29
rust: even safer casting to char
4 years ago
joseLuís
356b44b015
rust: finish up EGC type safe wrapping.
4 years ago
joseLuís
3e4a074f8f
rust: del ncplane_highgradient_sized due to #922
4 years ago
joseLuís
cac8202e03
rust: egc char related fixes
4 years ago
joseLuís
f25ba1b83c
rust: +11 plane functions, ±finishing ncplane.
...
- Functions ncplane_putw* considered unnecessary from Rust.
- Functions & macros ncplane_printf* pending evaluation.
4 years ago
joseLuís
9b827f22b6
rust: +6 plane functions
4 years ago
joseLuís
915d59fb3e
rust: +2 cell functions, finishing cells
...
- cell_prime and cells_load_box are unsafe fn, until a safer abstraction
is built around gcluster, to avoid raw pointers dereferencing.
4 years ago
joseLuís
11287b6081
rust: rename types, add cell init macros
...
- +3 macros: cell_initializer, cell_simple_initializer and
cell_trivial_initializer
- rename GraphemeCluster to EGC and GraphemeClusterBackStop to
EGCBackstop
- improve EGC doc comments
4 years ago
joseLuís
9c08411e27
rust: rustfmt
4 years ago
joseLuís
e324cd404c
rust: finish notcurses functions
...
+4 notcurses functions
4 years ago
joseLuís
154d3ef312
rust: +14 cell functions
...
WIP: cell_prime & cells_load_box
4 years ago
joseLuís
5eb9dc37d4
rust: finish channel functions
...
remove channels_blend()
4 years ago
nick black
05da44b06b
hide blending functions #917
4 years ago
joseLuís
a4d5817940
rust: cargo clippy alias
4 years ago
joseLuís
18f90e394c
rust: +22 cell functions
4 years ago
joseLuís
6cfd3d6ad7
rust: fix clippy compat with bindgen
...
and fix a couple of lints in plane.rs
4 years ago
joseLuís
b1b8400165
rust: +8 plane functions; refactor
4 years ago
joseLuís
a5fecf021e
rust: update cells code
4 years ago
joseLuís
4382487652
rust: update example
4 years ago
joseLuís
8eefeb2a73
rust: fix builder rerun condition
4 years ago
nick black
49ae79341d
v1.6.15
4 years ago
joseLuís
ccac3d033e
rust: update types
4 years ago
joseLuís
59546eaf40
rust: update dependency cstr_core; fixes #898
4 years ago
nick black
dc99d56ac1
v1.6.14
4 years ago
nick black
e897de3700
v1.6.13
4 years ago
nick black
202b88615f
kill ncplane_styles(), duplicates ncplane_attrs()
4 years ago
nick black
8b072c0b5f
rust: attrword -> stylemask, u32 -> u16
4 years ago
joseLuís
62e9c28a0a
rust: update types info
4 years ago
joseLuís
8c2ed36c3a
rust: update types info
4 years ago
joseLuís
9ff74c393a
rust: improve types info
4 years ago
joseLuís
d9596883d3
rust: make examples no_std compatible too
4 years ago
joseLuís
5ba618d6a8
rust: several fixes
...
- rename Alpha to AlphaBits
- fix pixel alpha mask
- fix syntax errors
4 years ago
joseLuís
55ad6153d2
rust: add a lot of info about types
4 years ago
joseLuís
d3d8051f36
rust: fix channel tests
4 years ago
joseLuís
d0f691af5f
rust: +8 plane functions; fix headers; minor fixes
4 years ago
joseLuís
4720f23b12
rust: improve some channel functions & comments
...
Functions `channel_set_alpha()`, `channels_set_fg_alpha()` &
`channels_set_bg_alpha()` don't return an error anymore. Instead
of failing when the alpha value has others bits set, it gets
cleaned of other possible bits with bitmasking.
And in case of trying to use high contrast for the background
alpha gets reset to a default opaque.
4 years ago
joseLuís
e1cfe9394f
+2 plane functions; fix comments
4 years ago
joseLuís
4ac4f1b09e
rust: clean root, move build files inside folder
4 years ago
joseLuís
e22232774d
rust: add direct-image example
4 years ago
nick black
adcabfae52
rust: assimilate #883
4 years ago
nick black
9704f5cbe7
v1.6.12
4 years ago
nick black
1ada631e94
purge rust/notcurses
4 years ago
joseLuís
efdb4ba4f1
pass rustfmt & fix typos
4 years ago
joseLuís
03f2e7c871
rust: implement palette functions
4 years ago
joseLuís
dbec390fac
rust: improve some channel functions
...
Functions `channel_set()`, `channels_set_fg()`, `channels_set_bg()`
don't return an error anymore. Instead of failing when the rgb value
has any of the last 8 bits set, now it just ignores those bits.
4 years ago
joseLuís
6424e453aa
rust: add test modules skeletons
4 years ago
joseLuís
ec92d13306
rust: improve info headers
4 years ago
joseLuís
da34965fcd
rust: implement pixel functions
4 years ago
joseLuís
7790913d2f
fix typos & improve comments
4 years ago
joseLuís
8b01f26730
rust: improve info headers for maximum consistency
...
and implement 1 palette fuction
4 years ago
joseLuís
70adc5645b
rust: reimplement keys fns & consts
4 years ago
joseLuís
a29fa0395d
add handy cargo aliases
4 years ago
joseLuís
ba660aa69b
make rust bindings no_std compatible, fixes #872
4 years ago
joseLuís
0362a11f63
make it compatible with no_std environment
4 years ago
joseLuís
799407f98c
prepare modules for pending work
4 years ago
joseLuís
2f1b4074eb
fix & refactor Rust bindings
...
- move types functions out of lib.rs into their own modules
- add modules types, and for cell & plane functions
- change error handling for consistency with the underlying lib
- reformat the code
4 years ago
José Luis Cruz
92350b4694
turn off doctests
...
Fixes bindgen errors due to invalid Rust comments imported from functions `ncmultiselector_options` and `ncselector_item`.
Related:
- https://github.com/rust-lang/rust-bindgen/issues/426
- https://github.com/rust-lang/rust-bindgen/issues/1749
4 years ago
joseLuís
e9bf400a7e
tidy up & update crate deps, categories & keywords
4 years ago
joseLuís
84c637d3e8
copy all comments as doc Rust comments
...
In principle it would be better to write the comments intented
for documentation as `///` (or `/** */` for multi-line), but
this way it works mostly, without having to change them all.
There are two comments that are not valid Rust doc-comments,
and arerendered badly: The are the ones in:
`ncmultiselector_options` and `ncselector_item`.
4 years ago
joseLuís
de643589b1
export all new channel functions
4 years ago
José Luis Cruz
8368380b66
Merge pull request #867
...
Remove warnings about improper_ctypes
4 years ago
joseLuís
590fbf4f1f
move channels.rs to libnotcurses-sys crate
4 years ago
joseLuís
2842ffb751
add remaining channel functions
4 years ago
joseLuís
2e640d4146
rewriting the channels inline functions in Rust
4 years ago
José Luis Cruz
9366028919
Remove warnings about improper_ctypes
...
Fixes : #856
4 years ago
joseLuís
1caba6ac29
refactor test module
...
- new function for creating the notcurses options for tests
- hide the initial statistics for cleaner test output
- reformat file with rustfmt
4 years ago
nick black
df25fc99b9
rust: generate direct mode bindings
...
When we split direct.h out from notcurses.h, I forgot to add
the new header file to the bindgen-rs includes. I've added
it, and also added a simple directmode unit test.
Closes #853 . Thanks @joseluis for reporting this issue!
4 years ago
nick black
fa76f5a432
v1.6.11
4 years ago
nick black
8cfd1677c4
v1.6.10
4 years ago
nick black
d126c71dd6
v1.6.9
4 years ago
nick black
f8c16ceb79
v1.6.8
4 years ago
nick black
4f8673b0e9
v1.6.7
4 years ago
nick black
f6d1aa74fc
serial_test seems sufficient?
4 years ago
nick black
a1c68b78cb
serial_test seems sufficient?
4 years ago
nick black
17f1323c20
v1.6.6
4 years ago
nick black
308b49da5a
v1.6.5
4 years ago
nick black
b2e924319b
v1.6.4
4 years ago
nick black
a4ee5bd9c7
v1.6.3
4 years ago
nick black
3f544a4ed1
v1.6.2
4 years ago
Nick Black
9ca7d14c2b
rust: drop libc_stdout from libnotcurses-sys tests #788
4 years ago
Nick Black
e3e7b40440
rust: use pkg-config results for -I values #788
4 years ago
nick black
1cc0371373
v1.6.1
4 years ago
nick black
284dfc4fad
v1.6.0
4 years ago
nick black
6ab11e679f
v1.5.3
4 years ago
nick black
64d42212a3
v1.5.2
4 years ago
nick black
bea281d120
rust: update for new notcurses_options
4 years ago
nick black
0657267274
v1.5.1
4 years ago
nick black
4d9171aee1
rust: get libnotcurses-sys compiling #704
4 years ago
nick black
7fc38d8fdd
v1.5.0
4 years ago
nick black
3bc9a4cfa2
v1.4.5
4 years ago
nick black
6bbf15cbd4
bump rust versions
4 years ago
nick black
354ece5826
v1.4.4.1
4 years ago
nick black
230f3af8e1
v1.4.4
4 years ago
nick black
c08c9b7f7f
v1.4.3
4 years ago
nick black
5537692bd1
cells_rounded_box() is now exported
4 years ago
nick black
99990e9a92
sigh, rust
4 years ago
nick black
32d3ae91c8
v1.4.2.3
4 years ago
nick black
e132c6bb24
v1.4.2.2
4 years ago
nick black
49fb03655e
v1.4.2.1
4 years ago
nick black
38e67abd9d
v1.4.2
4 years ago
nick black
8b5b44cf36
v1.4.1
4 years ago
nick black
6a22040584
v1.4.0
4 years ago
nick black
e2b610506f
v1.3.4
4 years ago
nick black
8feb01c7cc
rust: use ncplane_dim_{y|x} from libnotcurses-sys
4 years ago
nick black
0d38adc60a
rust: move inline replacements to libnotcurses-sys
4 years ago
nick black
ff18138349
rust: ncplane_perimeter(), cells_rounded_box()
4 years ago
nick black
63f65a0902
rust: proper subslice in ncplane_putstr()
4 years ago
nick black
05753bd91a
v1.3.3
4 years ago
nick black
5909f8f000
minimum of 0.4.0 for serial_test
4 years ago
nick black
70c5facbc3
rust: implement ncplane_putstr_yx()
4 years ago
nick black
790a953c82
list libqrcodegen in README
4 years ago
nick black
1dad2c6b50
v1.3.2
4 years ago
nick black
e00ef4aca9
prep for 1.3.1
4 years ago
nick black
86e225dc4c
prep for 1.3.0 #460
4 years ago
nick black
24a9343b0b
prep for 1.2.9
4 years ago
nick black
69b716f7f8
prep for 1.2.8
4 years ago
nick black
89809d5b59
prep for 1.2.7
4 years ago
nick black
6d366380ed
prep for 1.2.6
4 years ago
Nick Black
c2a645e9af
Rust wrapper work ( #454 )
...
* packaging: s/libtinfo/Terminfo/g
* rust: add stddim_yx()
* rust: check for valid init in unit tests
* rust: serialize up tests
* constify notcurses_term_dim_yx()
* rust: add dim wrappers
* remove notcurses_resize() from public API #367
* call notcurses_resize() from notcurses_refresh() #367
4 years ago
nick black
c2d7983afc
rust: merge up from colloquy branch
4 years ago
nick black
df3dc6b5bc
prep for 1.2.5
4 years ago
nick black
9d7d7ebd8a
rust: add getc_blocking()
4 years ago
nick black
a3323fb22c
Enforce UTF8 where necessary in unit tests #428
...
Certain unit tests required UTF8 encoding on the output
terminal to work (#428 ). This includes anything which does
any kind of fill. Add enforce_utf8() checks to all such
tests that were missing them. Unit tests once again pass in
a pure ASCII environment.
5 years ago
nick black
6c81cb3b45
rust: use libnotcurses-sys, add test
5 years ago
nick black
cbacf006e5
libnotcurses-sys: update tests for new notcurses_options
5 years ago
nick black
7c6b655483
v1.2.4
5 years ago
Nick Black
c056a0a026
Subregion renders #293 ( #404 )
...
Add four new fields to notcurses_options: margin_{tblr}, which requests margins to the top, right, bottom, and left. Render only within those margins, leaving the screen otherwise untouched (well, cleared if using the alternate screen). #293
5 years ago
nick black
ac683e21d2
v1.2.3
5 years ago
nick black
e72111ac8b
v1.2.2
5 years ago
nick black
88c49df1b1
v1.2.1
...
DSFG demo can't have luigi
s/1.2.0/1.2.1/g
5 years ago
nick black
b2210f0cf9
Rust: build libnotcurses-sys from CMake #320
5 years ago
nick black
2b08c53075
prep for 1.2.0
5 years ago
nick black
7043cfcc65
rust: prep for 1.1.8
5 years ago
nick black
887726b0d9
Debian: move all symbols/history to 1.1.8
5 years ago
nick black
1e676cc0f1
rust: update cargo.locks for 1.1.7
5 years ago
nick black
cda600a4aa
:/
5 years ago
nick black
34546afc73
Rust: add basic unit tests #101
5 years ago
nick black
b284901d18
prep for 1.1.6
5 years ago
nick black
2b6b6f996a
drone: new builders
5 years ago
nick black
429e00d612
v1.1.5
5 years ago
nick black
f8ee8b2a10
rust: update Cargo.locks
5 years ago
nick black
60c19017f0
v1.1.4
5 years ago
nick black
746ef96ea1
prep for v1.1.3
5 years ago
nick black
c9bfc54381
prep for 1.1.2
5 years ago
nick black
ac791c781d
1.1.1, update version numbers
5 years ago
nick black
17a1ff3de3
require notcurses 1.1.0 for libnotcurses-sys-rs
5 years ago
nick black
1a4ca80616
debian: finalize 1.1.0 rust: update version to 1.1.0
5 years ago
nick black
f857edd09d
libav: render spaces when possible
5 years ago
nick black
f1b17e964b
add package stuffs
5 years ago
nick black
17df279b66
libnotcurses-sys rust lowlevel bindings
5 years ago
nick black
2c2542a553
docs/rust/python: update versions to 1.1.0
5 years ago
nick black
0330919564
add notes about python release
5 years ago
nick black
5a555ff917
v1.0.2
5 years ago
nick black
7e40453199
v1.0.1
5 years ago
nick black
202115d826
Add python3-all-dev build-dep
5 years ago
nick black
af1a5ea528
v1.0.0. Give. Sympathize. Control.
5 years ago
nick black
136779826c
cargo: 0.9.9
5 years ago
nick black
f2df310edb
v0.9.9
5 years ago
nick black
24350ed51e
get everybody read for 0.9.3
5 years ago
Nick Black
4571b57ece
Rust/FreeBSD ( #221 )
...
* rust bindings
* update release documentation with Rust info
* panelreel tester: accept command-line options#180
* input: char32_t not wchar_t in output
* freebsd compilation issues #196
5 years ago