Commit Graph

4852 Commits (39335bc210ec091a13c6574d00b0c3257a550987)
 

Author SHA1 Message Date
nick black 39335bc210
[sixel_wipe] set SIXEL_P2_TRANS #1527 3 years ago
nick black 567c351b8f
[sprixcell] kill unused TAM enums for now 3 years ago
nick black 53485eabc3
[paint] extract paint_sprixel() 3 years ago
nick black 3474134f23
[nctree] eliminate tautological pointer compare 3 years ago
nick black 46d70602c5
always set SIXEL_P2_TRANS on transparent pixels #1527 3 years ago
nick black c54198a992
Emit P2=0 when sixel is entirely opaque
Some terminals (foot makes this claim explicitly) can draw
sixels more quickly when P2 is 0 than when P2 is 1. Since
we're already detecting transparency for the TAM matrix, do
the same globally, and prepare a sixel_p2_e value-result
parameter based on the results. If there are no transparent
pixels, emit P2=0 #1527.
3 years ago
nick black 2f8efe53a6
[demo] shrink the fps graph horizontally a little 3 years ago
nick black 162248fcaa
[ncplayer] put blitter changes into effect at media's end #1529 3 years ago
nick black ba059692f9
README: we're no longer necessarily 'svelter' 3 years ago
nick black 20b01e41a8
README: fix zig link 3 years ago
nick black fe9d877f80
notcurses-demo: add attribution for greatscott.jpg 3 years ago
nick black 77e8697be9
get a richer blue in banner RGB 3 years ago
nick black 4834ec6c1f
doc/man/index.html: link to version described 3 years ago
nick black e017dcba89
v2.2.6 3 years ago
nick black cfd47c26b6
ncvisual_render_pixels: reject negative placex/placey on alignment #1526 3 years ago
nick black 669bc5fa33
[mlterm] sixel cursor hack
At least mlterm unhides the cursor after emitting a
Sixel, even if it was hidden beforehand. Track this
behavior using 'sprixel_cursor_hack' in the tinfo cache.
Set this based on an "mlterm" TERM heuristic match.
When it is set, supply the 'civis' capability as
cursor_hack in blitterargs, and emit it at the end of
the sixel in sixel_blit() #1524.
3 years ago
nick black 03a1e66bf9
TERMINALS.md: add notes on terminology 3 years ago
nick black 7e08e40bff
notcurses_stop: don't treat drop_signals() as an error 3 years ago
nick black e301ef34ae
disable alacritty sixel until ayosec/graphics is merged #1430 3 years ago
nick black 084d5d6673
notcurses_init: free memstream on error paths 3 years ago
Daniel Eklöf 013ac94cd5 [sixel]: re-enable Set Raster Attributes, and fix the ‘pad’ parameter
Now that we explicitly set P2=1, we can safely emit a "Set Raster
Attributes" command, to tell the terminal the final size of the image
up front.

Also fix the ‘pad’ parameter (horizontal aspect ratio); XTerm rejects
sixels with pan or pad set to 0.
3 years ago
Daniel Eklöf 8b7fa78be1 [sixel]: set P2=1
This indicates that empty pixels should "remain at their current
color". I.e. it makes them transparent.

This is in contrast to P2=0|2, where empty pixels are filled with the
"current background color" (which is either sixel color register #0,
or the current ANSI background color, depending on terminal and its
sixel implementation).

Note that due to what is most likely a bug, XTerm will behave as if
P2=1 if P2 is either left unset, or explicitly set to 0 or 2, as long
as we do *not* emit a "Set Raster Attributes" command.
3 years ago
nick black 9c7fa38187
mlterm: enable quadrants (no sextants as of 3.9.0) 3 years ago
nick black c7fca301e8
sixel: set a huge default max geom 3 years ago
nick black e7ca10804d
xtsmgraphics reply: always allow 'S' to terminate #1523 3 years ago
nick black 430e328df6
[query_sixel] tighten sixel check state machine #1523 3 years ago
nick black 96ca5e79cb
xray: use alpha channel for sprixel 3 years ago
nick black 2e254d29e0
ncvisual_blitset_geom: fix unknown flag diagnostic 3 years ago
nick black 0fade67ae1
link to Jakub Dundalek's zig example 3 years ago
joseLuís 5f96acc9e3 [rust] refacture NcVisual module
- separate the methods into its own module.
- add constants NCVISUAL_OPTION_ADDALPHA, NCVISUAL_OPTION_HORALIGNED, NCVISUAL_OPTION_VERALIGNED
- add NcRgba type.
- update the docs.
3 years ago
nick black f8f2784a22
[alacritty] did they disable XTSMGRAPHICS again? wtf? 3 years ago
joseLuís 48ab7e0945 [rust] fix #1509
- fix bugs in macros: error, error_ref & error_ref_mut
- remove issue-1509 example
- minor improvements
- rustfmt
3 years ago
nick black fada4148b5 [ncplayer] add -a option for alpha channel #1518 3 years ago
nick black 76241f81d2 [rust] adapt pixel-cell.rs 3 years ago
nick black bb0d6c2e80 [rust] update fullsize_pixel_without_plane() 3 years ago
nick black 34bcbb505b [xray] put streaming plane back above scrolling #1518 3 years ago
nick black bac7d634d9 [visual] pipe transcolor through, use it everywhere #1518 3 years ago
nick black 0c566cd74a [ncvisual] pipe transcolor through #1518 3 years ago
joseLuís 932f4c1b7c [rust] simplify issue-1509 example 3 years ago
nick black 33929cf91e
[rust] update to nccell 3 years ago
joseLuís bc80350384 [rust] several fixes
- fix after renaming cell functions.
- fix some NcVisual method names and docs
- fix some rustdoc warnings
3 years ago
nick black 9fdfd33d30
[cffi] update cell_release to nccell_release 3 years ago
nick black 849ec2748f
[rust] nccell updates 3 years ago
nick black ff76dba6ed
cell_strdup -> nccell_strdup 3 years ago
nick black 94a2badc06
Merge branch 'master' of github.com:dankamongmen/notcurses 3 years ago
nick black 0fc5f7835d
[docs] cell_release -> nccell_release 3 years ago
nick black d504e972cc
cell_release -> nccell_release 3 years ago
joseLuís 1afe6f162e rust: add new pixel geometry functionality
- add NcPlane method .pixelgeom.
- upgrade full-capabilities example.
- fix NcVisual method .blitter_geom docs.
- rustfmt
3 years ago
nick black 9dbcef9969
stop exporting lookup_blitset()
the media code that makes up non-core libnotcurses called
into lookup_rgba(). instead, have them use the new
funtion ncvisual_blitter_geom() to access the actual blitter
being used. we can then hide lookup_blitset(), which ought
never have been exported. closes #1519.
3 years ago
nick black d4fff6a921
check wcwidth('⣿') for braille support 3 years ago