Commit Graph

3707 Commits

Author SHA1 Message Date
joseLuís
08b000de28 rust: remove no_std; fix #1119 2020-11-15 22:43:22 +01:00
joseLuís
d9a74dab26 rust: start adding notcurses tests 2020-11-15 18:04:53 +01:00
joseLuís
00f5001342 rust: ncplane constructors
- new NcPlane & NcPlaneOptions constructors.
- new NcHoriz enum for NcPlaneOptions horiz parameter.
- Make NCPLANE_OPTION_HORALIGNED u64 for consistency with expected value type.
2020-11-15 17:49:12 +01:00
nick black
51d01b22c8
who knows how this happened 2020-11-13 20:10:39 -05:00
nick black
cedf8761f5
Merge branch 'master' of github.com:dankamongmen/notcurses 2020-11-13 19:07:21 -05:00
nick black
0e23fbee19
valery quote 2020-11-13 19:07:17 -05:00
joseLuís
566a2bb902 add the rendered png file of the notcurses model
`dot -Tpng doc/model.dot -o doc/model.png && optipng doc/model.png`
2020-11-13 17:14:39 +01:00
nick black
c9d6809014
view: replay current media on blitter change #1111 2020-11-12 14:40:22 -05:00
nick black
92add03a30
python: run setup.py without pypandoc #1110 2020-11-12 14:40:18 -05:00
nick black
e4907855d2
blitter POC: add 3x2 2020-11-11 03:13:46 -05:00
nick black
259b2b6012
make it clear that sixel is not yet supported 2020-11-11 03:12:37 -05:00
nick black
fb0beb19b6
ncblit_bgrx() improvements #1105
Add unit tests for ncblit_bgrx. Rewrite bgra_to_rgba() using
ncpixel_*() funtionality. Rewrite ncblit_bgrx() using
ncblit_rgba().
2020-11-11 00:58:42 -05:00
nick black
7622cefc3a
v2.0.4 2020-11-10 10:50:30 -05:00
nick black
0eac5a2e4a
Merge branch 'master' of github.com:dankamongmen/notcurses 2020-11-09 20:54:44 -05:00
nick black
279b365e3c
Quadblitter unit tests: require UTF8 #1108 2020-11-09 20:54:39 -05:00
joseLuís
04882971a2 rust: more refactoring
- make Notcurses `new()` constructor not output banners.
- add an additional constructor `with_banners()`.
- add new aliases for running examples silently.
- improve comments & run rustfmt.
2020-11-09 19:59:39 +01:00
nick black
0d31a03be9
v2.0.3 2020-11-09 13:45:59 -05:00
joseLuís
7a164c3009 rust: continue reworking the API & improve documentation
- remove macros module and move macros to types submodules.
- document the macros.
- add ncmetric macros.
- add missing constants for NcVisual and ncmetric.
- add missing function ncstrwidth
- remove types/colors module and move the content to types/channel
- add more doc comments.
2020-11-09 19:13:13 +01:00
joseLuís
219bc34128 fix typo 2020-11-09 16:05:48 +01:00
joseLuís
f22dfd78b5 rust: continue reworking the API & improve documentation
- separate the `types` module into submodules to improve clarity & maintenance.
- more constructors for NcMenu, NcMenuItem, NcMenuSection, NcMenuOptions.
- add more missing docs, specially for constants
2020-11-09 16:01:48 +01:00
joseLuís
08a0da358e rust: continue reworking the API & improve documentation
- remove _IO_FILE import and usage.
- create handy constructors for NcDirect & Notcurses.
  (but can't implement destructors for copy types…).
- when possible substitute mutable pointers `*mut` for mutable references `&mut`
  with associated lifetimes.
- new widgets module, starting with NcReader & NcReaderOptions constructors
2020-11-08 18:35:35 +01:00
joseLuís
965a0771d8 rust: continue reworking the API & improve documentation
- rename `Pixel` to `NcPixel`
- rename `cell_simple_initializer` to `cell_char_initializer`
  and `cell_load_simple` to `cell_load_char`
- create constructor for `NcReader`
- fix and improve documentation for several types.
- Add `NcDirectOptions` struct and `NcDirectOptionHoriz` union
2020-11-08 14:00:09 +01:00
nick black
07cc29634f
ncblit_*(): sanity check linesize parameter 2020-11-07 23:13:02 -05:00
nick black
2bb546e3ac
Merge branch 'master' of github.com:dankamongmen/notcurses 2020-11-07 15:22:46 -05:00
nick black
f0836b6e65
graphviz dot model of notcurses data structures 2020-11-07 15:22:43 -05:00
joseLuís
4673a86ea2 rust: API refactor & improve documentation
- rename EGC to Egc, EGCBackstop to EgcBackstop and ChannelPair to Channels.
- make the original type aliased structs non-public (e.g. ncdirect, ncalign…)
- fix and improve documentation for several types.
- revert renaming crate to nc on use.
- directly import the used types at the beginning of the module.

Now the rustdoc generated documentation is much cleaner.
2020-11-07 18:34:42 +01:00
José Luis Cruz
1c4b3475ff
fix markdown link 2020-11-07 15:15:31 +01:00
nick black
8a81d06b4b
ncreader: implement reamining shortcuts #983 2020-11-07 05:52:12 -05:00
nick black
1b1d727169
ncreader: support ctrl-a and ctrl-e #983 2020-11-07 05:39:26 -05:00
nick black
67e7046956
ncreader: implement Alt+B for back by word #983 2020-11-07 05:30:28 -05:00
nick black
65a0059b38
plots: fix NCBLIT_3x2 for plotting #1104 2020-11-07 05:13:09 -05:00
nick black
a221ba2865
notcurses-static doesn't need an SOVERSION 2020-11-07 02:36:03 -05:00
nick black
3fbfe181ed
man pages: update some unsigned flags to uint64_t 2020-11-06 18:15:57 -05:00
nick black
8325102827
man pages: argument syntax for remaining entries #1103 2020-11-06 16:49:35 -05:00
nick black
530dda1002
man page argument syntax: fade, fds #1103 2020-11-06 16:44:06 -05:00
nick black
6f9f063f1d
notcurses_directmode.3: argument syntax #1103 2020-11-06 16:41:17 -05:00
nick black
47b62ce822
make some unsigneds explicit uint32_ts 2020-11-06 16:38:31 -05:00
nick black
cf75598f03
argument syntax for man pages: cell, channels #1103 2020-11-06 16:21:24 -05:00
nick black
7018f2589f
notcurses_capabilities.3: argument syntax #1103 2020-11-06 16:11:59 -05:00
nick black
173265a99f
notcurses_visual.3.md: set argument names off in italic #1103 2020-11-06 16:10:58 -05:00
nick black
9530ebbb16 notcurses-view: allow arrow keys #603 2020-11-06 11:05:21 -05:00
joseLuís
d82f0934b3 rust: show inline documentation for curated bindings 2020-11-06 14:56:31 +01:00
joseLuís
27628e961a rust: improve bindings 2020-11-06 13:59:32 +01:00
joseLuís
a40cabb9d0 rust: move integration tests out of lib.rs 2020-11-06 13:57:29 +01:00
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.
2020-11-06 13:40:52 +01:00
nick black
592e339c7e
Merge branch 'master' of github.com:dankamongmen/notcurses 2020-11-05 16:31:12 -05:00
nick black
c411b0a7b8
get your head in the fucking game nicholas #1059 2020-11-05 16:31:07 -05:00
joseLuís
98a2fcf336 rust: explicit bindgen imports for a better world 2020-11-05 20:50:05 +01:00
nick black
4b2edf0019
ncplot: add comment regarding d vs u 2020-11-05 14:20:57 -05:00
nick black
f3cd1fb755
ncinput_equal_p(): return bool, not int #1059 2020-11-05 14:18:00 -05:00