Commit Graph

3828 Commits

Author SHA1 Message Date
joseLuís
298f250ee8 rust: refactor unsafe functions.
- remove unneeded unsafe.
- simplify lifetimes.
- fix ncplane_gradient_sized.
- fix NcChannelPair
- fix comments.
- rustfmt.
2020-12-23 00:27:29 +01:00
joseLuís
af11b123fa rust: add NcProgBar widget 2020-12-23 00:12:30 +01:00
joseLuís
4c048ef625 rust: finish adding Notcurses methods. 2020-12-22 15:17:50 +01:00
joseLuís
fa693a89c1 rust: add most Notcurses methods.
- fix some comments.
2020-12-22 15:01:07 +01:00
nick black
878842942d
TERMS.md: document block-drawing 2020-12-22 02:09:10 -05:00
nick black
6ca8949845 add kittyzapper PoC #1117 2020-12-21 23:01:56 -05:00
nick black
0578e86e02 introduce terminal-specific heuristics
Kitty conflates an RGB background specification that aligns
with the default background color with that actual background
color. This can result in translucent background when we're
expecting opaque ones. Detect kitty (strstr check of terminal
name for "kitty"), and if it's active, mark `bg_collides_default`
with the rgb of the default background color. For now, we assume
this to be (0,0,0), but we ought improve it by determining (or
setting, if that's impossible) the precise default bg color.
Closes #1117.
2020-12-21 23:01:56 -05:00
nick black
7df2c7cd04
ncdirect: use sgr0, properly align images 2020-12-21 20:09:41 -05:00
nick black
e1b1654d1e
NEWS: mention ncdirect image render split 2020-12-21 19:51:22 -05:00
nick black
0ceb129125
document kitty properties #1117 2020-12-21 19:38:32 -05:00
nick black
d3fc0db1ee
Merge branch 'master' of github.com:dankamongmen/notcurses 2020-12-21 19:28:27 -05:00
nick black
53d4dac427
drone: add ubuntu hirsute builder 2020-12-21 19:28:22 -05:00
joseLuís
fd1b81c0f8 rust: add NcPixel methods.
- finish updating the functions.
2020-12-21 21:15:10 +01:00
joseLuís
0db4e48a6b rust: endianess updates for NcPixel & NcCell
- Update NcPixel functions, and their descriptions.
- Update NcPixel constructor.
2020-12-21 20:34:50 +01:00
joseLuís
6752741982 rust: add dynamic linesig control
- add new functions notcurses_linesigs_disable & notcurses_linesigs_enable.
- fix comments.
2020-12-21 16:44:04 +01:00
nick black
1fb4a66853
raster: fine-grained emits of op for default #1240 2020-12-21 08:11:44 -05:00
nick black
408004ee66
define fgop/bgop for fine-grained default color #1240 2020-12-21 07:21:33 -05:00
nick black
248dd1fff2
add dynamic linesig control #1228 2020-12-20 20:16:08 -05:00
nick black
99abcb5f07
cbreak_mode: move to input.c 2020-12-20 19:59:08 -05:00
nick black
41c2a75f9b
TERMS.md: some fatty did eat the cake 2020-12-20 18:57:09 -05:00
nick black
0920675db1
there are now three ways to hide a plane, sigh 2020-12-20 18:53:08 -05:00
nick black
d1fdaf7614 view: add -t option for timeouts
When the -t switch is provided to notcurses-view, its
floating-point argument is the number of seconds for
which we delay after showing an image. When this is used,
the standard "press any key to continue" prompt is not
displayed, and indeed keybindings are not honored. This
can be used for a slideshow, or just for fullscreen display
involving no user interaction. It does not apply in the
case of -L for looping. Closes #1229.
2020-12-20 18:34:15 -05:00
nick black
c0316ee96c view: document and parse -t time argument #1229 2020-12-20 18:34:15 -05:00
joseLuís
240b58d52b rust: update msrv in readme 2020-12-20 19:00:08 +01:00
joseLuís
de56912cc4 rust: keep adding NcPlane methods & more
- new type NcResizeCb.
- new functions ncresizecb_safe & ncresizecb_unsafe.
- update NcPlaneOptions constructors.
- Improve & fix comments.
2020-12-20 18:56:46 +01:00
joseLuís
183d6473cd rust: continue adding NcPlane methods.
- add new module fade.
  - new type NcFadeCb.
  - move NcFadeCtx here.
- add TOC for NcPlane methods sections.
- fix & improve comments.
- remove deprecated ncplane functions.
2020-12-20 00:30:46 +01:00
joseLuís
45c01c95af update align doc comments #1234 2020-12-19 18:03:32 +01:00
joseLuís
84987b61a9 rust: refactor ncbox, ncalign; add NcPlane methods.
- wrap NCBOX* constants.
- new NcBoxMask type.
- new NCRESULT_MAX const.
- add NcPlane box & perimeter methods.
- move NcAlign to notcurses mod.
- update notcurses_align & test.
- improve comments.
- rustfmt.
2020-12-19 18:01:28 +01:00
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