Commit Graph

4004 Commits

Author SHA1 Message Date
nick black
f78fadc356
drone: use es_ES on ubuntu for madlad decimal separator testing 2020-12-28 19:53:03 -05:00
nick black
69e329d328
BigMult unit tests: fix for non-'.' decseps 2020-12-28 14:23:32 -05:00
nick black
7e20a25482
ncdirect_*_palindex -> ncdirect_set_*_palindex #1261 2020-12-28 13:57:13 -05:00
nick black
f1253560ad
ncdirect: set_ on rgb functions #1261 2020-12-28 13:52:58 -05:00
nick black
5d99b440e7
Merge branch 'master' of github.com:dankamongmen/notcurses 2020-12-28 13:38:10 -05:00
nick black
76d8e2dfce
ncdirect_{fg, bg}_default() -> ncdirect_set_{fg, bg}_default() #1261 2020-12-28 13:38:05 -05:00
joseLuís
ff2a22a9a9 rust: Finish adding NcChannel* methods.
- make channels_set[f|b]g_rgb() functions (and corresponding methods) return the NcChannelPair, taking advantage of the fact that those functions can't fail in Rust.
- documentation fixes.
- fix NCSCALE definition typo.
2020-12-28 17:59:27 +01:00
nick black
713498efc5
syntax error in notcurses_input.3 2020-12-28 09:45:33 -05:00
nick black
e6d1cbb2b4
clean up notcurses_input.3 2020-12-28 09:44:44 -05:00
nick black
0fb8427fca
notcurses-demo.1: better mojibake description 2020-12-28 09:40:07 -05:00
nick black
5cf546b84f
notcurses-demo.1: add Alt+d and P commands 2020-12-28 09:38:49 -05:00
nick black
6a969e1f52
Merge branch 'master' of github.com:dankamongmen/notcurses 2020-12-28 09:36:06 -05:00
nick black
c62b0d3aa1
finish sentence in notcurses-demo man page 2020-12-28 09:35:56 -05:00
joseLuís
b6c84cfce2 rust: more 2.1.2 catch-ups
- deprecate old ncdirect_style_* functions.
- add `NCSCALE_*_HIRES` constants.
- BONUS: update ncdirect_raster_frame, removed parameters.
2020-12-28 13:47:44 +01:00
nick black
58bc9bd3bc
fix up writeout stats, report in shutdown banner 2020-12-28 04:50:20 -05:00
nick black
0e8faed3f5
ncneofetch: check LOGO field in /etc/os-release #1246 2020-12-28 03:54:38 -05:00
nick black
638dde7657
remove unnecessary args from ncdirect_raster_frame() #1248 2020-12-28 02:41:22 -05:00
nick black
1d8fcbb5e4
ncdirect: styles{set, on, off} -> _styles #1247 2020-12-28 02:21:37 -05:00
nick black
66349ecbd0
progress bar unit tests: skip non-utf8 2020-12-28 02:01:54 -05:00
nick black
1c4d942cfc DualCell{Left, Right} unit tests #1258 2020-12-28 01:58:54 -05:00
nick black
f608df2af8 progbar PoC: call through on 1 #1258 2020-12-28 01:58:54 -05:00
nick black
8824495924 uniblock demo: properly set progress 2020-12-28 01:58:54 -05:00
nick black
f729d855f9 complete SingleCellDown/SingleCellUp tests #1258 2020-12-28 01:58:54 -05:00
nick black
cd8dd4232c Progress bar unit test SingleCellUp #1258 2020-12-28 01:58:54 -05:00
nick black
b0c6f697e0
yield: render in pfill loop so we never look locked up 2020-12-28 00:54:44 -05:00
nick black
68f5ea711e
demo: move HUD over by 2, don't block legend 2020-12-28 00:46:30 -05:00
nick black
0ef4c63e17
remove redundant OTHER template #1251 2020-12-27 23:58:17 -05:00
nick black
dad7a02b25
add test file for progressbars #1258 2020-12-27 23:36:24 -05:00
nick black
f22ddfa72f
progbar: don't overrun on 1.0 #1257 2020-12-27 21:07:33 -05:00
joseLuís
5d90e7de15 rust: update more NcPlane methods' return type to NcResult.
- rustfmt, comments…
2020-12-27 20:27:46 +01:00
joseLuís
b6fcd2783d tools: update funtion-summary.sh & generated data 2020-12-27 19:59:33 +01:00
joseLuís
9dda358364 rust: make modifications to match v2.1.2
- add new ffi::functions: ncplane_resize_maximize, notcurses_cansextant,
- substitute rust reimplementions of ncplane_at_cursor_cell & ncplane_at_yx_cell by ffi ones.
- substitute ncvisual_default_blitter by ncvisual_defblitter.
- rename cell style functions
2020-12-27 19:55:13 +01:00
joseLuís
55d49a43f6 rust: continue NcMenu PoC example; fixes
- modify ncmenu constructor Accept &mut[] instead of Vec<> to avoid FFI related problems. Furthermore, from rust 1.48 it's easy to convert a Vec into an array using the std::convert::TryInto trait.
- fix ncmenu method names.
- fix & refactor Notcurses contructors; add `with_debug` constructor.
- make NcPlane.set_base receive a char instead of a reference, since it's copy.
- add `rre` cargo alias for running examples on release.
2020-12-27 19:00:32 +01:00
joseLuís
a880eaf018 rust: new NcMenu PoC example & more error refactoring.
- new example poc-menu (WIP).
- improve constructors for NcMenu*.
- divide NcMenu* methods into submodules.
- fix return type for NcPlane constructors.
- use NcResult on functions returning references.
- fix a couple of Notcurses methods.
- add more NcChannelPair methods.
- refactor NcInput constructors.
- rename error_ptr![] to error_ref_mut![]
- new macro cstring_mut![].
- new error_ref![] macro.
- update examples & tests.
- bump version in readme.
2020-12-26 20:29:06 +01:00
nick black
55d563b646
v2.1.2 2020-12-26 02:53:40 -05:00
joseLuís
2762e9e561 rust: refactor errors for NcPlane & NcReader.
- add ncplane_new_bound_test helper function.
- update examples & tests as needed.
- rustfmt & minor fixes.
2020-12-26 07:34:26 +01:00
joseLuís
e966348321 rust: add NcMenu methods & fix error_ptr macro 2020-12-26 06:16:54 +01:00
joseLuís
e75432fcf2 rust: deprecate ncvisual_default_blitter 2020-12-26 05:46:05 +01:00
joseLuís
05d5c36622 rust: remove integration tests
- they really are unit tests.
- move version test to its right place.
- BONUS: add rstring![] macro.
2020-12-26 05:41:17 +01:00
nick black
c9fb385ebe fold out test breakage #1250 2020-12-25 23:28:50 -05:00
nick black
91e932ed26 ncvisual_render: handle NCSCALE_NONE_HIRES #1250 2020-12-25 23:28:50 -05:00
nick black
56d94e9392 intro: add a bar on top to match bottom 2020-12-25 23:28:50 -05:00
nick black
15664b9799 ncdirect: handle new scalings #1250 2020-12-25 23:28:50 -05:00
nick black
dd1cdc40d5 add NCSCALE_NONE_HIRES, NCSCALE_SCALE_HIRES #1250 2020-12-25 23:28:50 -05:00
joseLuís
fbe4352233 rust: refactor sleep macros
- receive a variable number of arguments.
- make rsleep use methods and deal with NcResult.
- new fsleep to flush an NcDirect context.
- fix macro usages in examples.
2020-12-26 05:14:27 +01:00
joseLuís
763f3efdc5 rust: continue refactoring the error system.
- deal with null()|null_mut() being returned from
  functions, previously ignored.
- new macros: error_ptr & error_str to deal with
  functions returning *mut T & *const c_char into
  NcResult<&mut T> or NcResult<String>, respectively.
2020-12-26 03:58:55 +01:00
Nick Black
770a8a4392 Update issue templates
@joseluis wanted an "other" with a blank template.
2020-12-25 21:30:22 -05:00
nick black
a4bad2318f
dragon: don't force 3x2 2020-12-25 19:49:27 -05:00
nick black
3f26c36458
direct: honor transparency in image blitting #1252 2020-12-25 18:45:09 -05:00
nick black
9268109778
update man pages for ncvisual_media_defblitter() #1114 2020-12-25 17:37:27 -05:00