Commit Graph

3800 Commits

Author SHA1 Message Date
nick black
1303e5e310
Merge branch 'master' of github.com:dankamongmen/notcurses 2020-12-18 22:15:41 -05:00
nick black
f20aae8dc6
document presence of bce in various terminals #1117 2020-12-18 22:15:29 -05:00
joseLuís
493298f0f1 rust: new dimension types & NcPlane methods.
- add new NcDimension and NcOffset types.
- add more NcPlane methods.
- remove NcPlane methods:
  - ncplane_put_egc.
- add missing NCKEY_ESC and NCKEY_SPACE keycodes.
- add notcurses methods: getc_nblock.
- fix comments.
- rustfmt.
2020-12-19 03:44:55 +01:00
nick black
0b633fbdad
ncplane_at_yx_cell/at_cursor_cell: return bytes of egc 2020-12-18 19:11:05 -05:00
nick black
fd146db050
demo: reject extra command line arguments 2020-12-18 18:52:11 -05:00
nick black
5cd3cdaf70
direct: s/ncplane/ncdirectv/g 2020-12-18 15:29:51 -05:00
Nick Black
730e9f69ec
Multithreaded ncls (#1232)
Thread out ncls to perform the media decode in different threads, in parallel. Only the display needs be locked. On a directory of 200 files on my 39070X, this speeds ncls from ~5s to ~1s. On 75 files, we go from ~.5s to ~.2s. On a single file, we lose about 5%. To facilitate this, ncdirect_render_image() has been split into two helpers, ncdirect_render_frame() and ncdirect_raster_frame().
2020-12-18 15:28:24 -05:00
nick black
d7fd7fa39e
ncdirect_render_image: save/restore colors #1230 2020-12-18 01:51:21 -05:00
nick black
bf3e3eb0b5
ncplane_at_cursor_cell: rewrite with ncplane_at_yx_cell() 2020-12-18 01:39:44 -05:00
nick black
1798e061e1
fallin': drop unused nccell c #1231 2020-12-18 01:31:58 -05:00
nick black
28b1a80433
ncplane_at_yx_cell: work directly with cell_duplicate() #1231 2020-12-18 01:19:28 -05:00
nick black
1b613591fe
ncmenu_create: missing newline on diagnostic 2020-12-18 00:51:42 -05:00
nick black
405b456428
disambiguate comment on ncdirect #1227 2020-12-17 20:38:43 -05:00
nick black
e43d127b42
ncdirect_render_image: reset colors after each line #1222 2020-12-17 18:25:50 -05:00
nick black
14778e4b71
ncdirect_dump_plane: always emit newline #1222 2020-12-17 18:15:51 -05:00
nick black
50d31e55a5
Merge branch 'master' of github.com:dankamongmen/notcurses 2020-12-17 18:12:55 -05:00
nick black
85b0a37154
ncdirect: retry fflush() on EAGAIN on all paths 2020-12-17 18:11:45 -05:00
nick black
0fb455f0ee
ncls: don't flush output after each line 2020-12-17 17:28:05 -05:00
joseLuís
2957893da9 rust: update cell tests; minor doc fix 2020-12-17 22:03:05 +01:00
nick black
ded14ac190
drone: kick fedora hard in the ass 2020-12-17 15:46:18 -05:00
nick black
0a021fce1c
drone: debian unstable uses 2020-12-17a 2020-12-17 15:28:01 -05:00
nick black
9b0f88f024
ncpile_drop(): reset stdplane's blist #1226 2020-12-17 15:02:49 -05:00
nick black
8fb8d55222
Merge branch 'master' of github.com:dankamongmen/notcurses 2020-12-17 13:47:13 -05:00
nick black
3226652936
reel demo: kill tablets on demo_render() exit #1225 2020-12-17 13:47:02 -05:00
joseLuís
7f175cf37c rust: NcCell width-aware constructors #1203 #1205 2020-12-17 12:10:36 +01:00
nick black
2190b33421
drone: update to debian unstable 2020-12-16a builder, disable ubuntu #1220 2020-12-16 19:56:58 -05:00
nick black
8c5c9d8566
drone: update fedora builder to 2020-12-16a 2020-12-16 19:53:17 -05:00
joseLuís
04b10741d4 drone: build rust in debian and fedora #1220 2020-12-17 00:59:37 +01:00
nick black
4fabba6789
s/reception/receipt/ 2020-12-16 18:22:12 -05:00
nick black
2d07bbee59
Merge branch 'master' of github.com:dankamongmen/notcurses 2020-12-16 17:42:11 -05:00
nick black
d6d5757b1d
v2.1.1 2020-12-16 17:42:06 -05:00
joseLuís
e778cc38e4 show rustc version in drone 2020-12-16 23:33:03 +01:00
joseLuís
4cca3ddd48 rust: working on input
- make char: all NCKEY_* constants.
- make const fn: nckey_mouse_p, ncinput_equal_p & NcInput::new.
- make rsleep!() return the notcurses_render() result.
- new Notcurses constructor with_flags().
- new example: full-input.rs.
- fix comments.
2020-12-16 23:15:29 +01:00
Nick Black
1bdd2d0555
Progress bar polishing (#1219)
Progress bars now support four 32-bit channels in ncprogbar_options, and uses them to color a gradient. The redraw procedure has been changed from O(n) to O(1). ASCII progress bars have been repaired. Closes #1213.
2020-12-16 16:48:10 -05:00
nick black
45a7458553
grotesque 2020-12-16 10:58:36 -05:00
nick black
94d4f7a04a
Merge branch 'master' of github.com:dankamongmen/notcurses 2020-12-16 07:24:01 -05:00
nick black
243b8bd4d4
uniblock: scrub all legend residue 2020-12-16 07:23:48 -05:00
Nick Black
db77e19795
drone: alpine builder (#1217)
* drone: add alpine-edge builder #1216. ffmpeg, no qrcodegen, no pandoc
2020-12-16 07:04:42 -05:00
nick black
45d0ca54e9
add SetStruck directmode test 2020-12-16 06:46:54 -05:00
nick black
35cb5d9511
GrowPlanes tests: use valid arguments #1215 2020-12-16 06:40:43 -05:00
nick black
7b4f978256
ncplane_resize_internal: disallow bad keepy/keepx #1215 2020-12-16 06:40:25 -05:00
nick black
66150c1f42
ncplane_resize_internal: reject keep > len #1215 2020-12-16 06:04:28 -05:00
nick black
a0c722ff0d
notcurses_nccell.3 -> notcurses_cell.3 2020-12-16 05:40:14 -05:00
nick black
913373c27e
ncplane_reparent: update boundto in non-root case #1214 2020-12-16 03:22:13 -05:00
nick black
bcbf7a490f
add ReparentDeep unit test #1214 2020-12-16 03:21:46 -05:00
nick black
f83bdab99c
progress bars: full resolution for retrograde #1210 2020-12-16 02:53:24 -05:00
nick black
a598c706db
Correctly splice children of reparented root plane
Tremendous thanks to @kaniini, @Ikke and everyone else over
at Alpine Linux for helping to chase this down. I blundered
in ncplane_reparent() when reparenting a root plane with
children (the children need to come into the root plane
list). This will hopefully fix our amd64 failures on Alpine
since late 2.0.x. Closes #1197.
2020-12-16 02:17:28 -05:00
Ariadne Conill
b49ac58d3e cope with situations where /dev/tty is not actually a TTY
this can happen in situations where a child process is not running in a
session group associated with a TTY, such as on a build server.
2020-12-15 22:07:27 -05:00
nick black
66bd8c9769
pull model.png out of index.html 2020-12-15 05:14:17 -05:00
nick black
f2cbfff8d9
demo: remove meaningless average r%/w% 2020-12-15 05:11:50 -05:00