Commit Graph

3395 Commits

Author SHA1 Message Date
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
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.
2020-11-05 18:35:11 +01:00
joseLuís
d59d05990b rust: direct mode changes
- rename ncdirect_start to ncdirect_new
- add direct mode option flags
- fix examples
- refactor comments
2020-11-04 18:31:12 +01:00
joseLuís
00b5445418 fix typos 2020-11-04 18:27:36 +01:00
joseLuís
94827c12a2 rust: update dependencies 2020-11-04 12:02:13 +01:00
joseLuís
fed2d7cb9b rust: fix comments 2020-11-03 21:05:57 +01:00
joseLuís
e8ff092f50 rust: fix input; add constructor 2020-11-03 20:59:57 +01:00
joseLuís
2f3d99e4e7 rust: fix visual 2020-11-03 20:40:04 +01:00
joseLuís
cfb2bf0824 rust: add input module with 1 static function 2020-11-03 20:26:33 +01:00
joseLuís
446d2179d6 update function-summary.sh stats; remove oldest stats 2020-11-03 20:03:04 +01:00
joseLuís
03d2ffffaf fix typo 2020-11-03 19:59:49 +01:00
joseLuís
09bdf6ebd4 rust: add visual module 2020-11-03 19:59:13 +01:00
joseLuís
cb16c52eef rust: review functions; update headers 2020-11-03 19:59:10 +01:00