Commit Graph

5853 Commits

Author SHA1 Message Date
nick black
d360cc1d1e ncvisual_from_rgb_{packed, loose}() #1767 2021-06-19 05:14:09 -04:00
joseLuís
4a16ccc78a [rust] temporary fix for bindgen warnings 2021-06-19 09:55:14 +02:00
joseLuís
d38a63ca04 [rust] add NCDIRECT_OPTION[_VERY]_VERBOSE consts 2021-06-19 09:49:48 +02:00
nick black
67e2f016e8 README: tighten up top text 2021-06-19 03:39:56 -04:00
nick black
cc99056826 use new logo 2021-06-19 03:39:56 -04:00
nick black
26752b109a README: link to notcurses III video 2021-06-19 03:39:56 -04:00
nick black
c8dfa17485
Set up sane logging for direct mode
All our diagnostic macros required a struct notcurses from
which to extract the loglevel. Eliminate this parameter,
and update all caller sites. Add a library-wide (but not
exported) loglevel variable, and set it from both
notcurses_core_init() and ncdirect_core_init(). Add two
new direct mode flags, NCDIRECT_OPTION_VERBOSE and
NCDIRECT_OPTION_VERY_VERBOSE, mapping them to
NCLOGLEVEL_WARNING and NCLOGLEVEL_INFO respectively.
Closes #1690.
2021-06-19 03:21:05 -04:00
joseLuís
391c58e4ed [rust]
- add ncdirect_canget_cursor
- made ncplane_notcurses require a non-mutable reference.
2021-06-19 08:42:04 +02:00
nick black
9f8a00560c
README: break up badges 2021-06-19 02:10:56 -04:00
nick black
350f531a5a
sexblitter: honor nointerpolate throughout #1763 2021-06-19 01:25:24 -04:00
nick black
048f2f5e77
handle nointerpolate in transparent sexblitter cell #1763 2021-06-19 01:12:49 -04:00
nick black
29f0243cbf
quadblitter: no interpolation with NCVISUAL_OPTIONS_NOINTERPOLATE #1763 2021-06-19 01:02:50 -04:00
nick black
bd633d697a
[rust] idiot 2021-06-19 00:20:40 -04:00
nick black
b3ed98b686
rust: adapt to non-const ncdirect_get_{xy}() #1789 2021-06-19 00:11:36 -04:00
nick black
534000cadb
clamp sixel height in update_term_dimensions() so ncdirect gets it #1789 2021-06-19 00:02:50 -04:00
nick black
50a304bada
Avoid drawing sixel to the bottom row
Sixels, unlike Kitties, can't be drawn to the bottom row,
lest we scroll. We were properly guarding against creation
of a sixel that touched the bottom row when creating the
plane within ncvisual_blit(), but not when we were provided
with a plane. This used to be fine because ncplayer cut the
plane off less one row, but when we enabled the bottom row
for Kitties, this ceased. We don't want to expose this wart
to userspace, so instead clamp sixel_maxy based off the screen
height when appropriate. Closes #1789.

1789?!?! Liberté, Egalité, Fraternité!
2021-06-18 18:42:30 -04:00
nick black
fc390da020 invert DECSDM for terminals with sprixel_cursor_hack set #1782 2021-06-18 15:35:18 -04:00
nick black
574eef2e28 need to call sprite_init() from setup_sixel_bitmaps() 2021-06-18 15:35:18 -04:00
nick black
5e16208801
remove garbage CursesStyles unit test #1791 2021-06-18 15:08:31 -04:00
nick black
3cb537c3fc
only list sgr styles as supported if we have sgr #1791 2021-06-18 15:05:35 -04:00
nick black
32c34b1782
ncdirect_style_emit: return 0 when no sgr is defined #1791 2021-06-18 14:50:23 -04:00
nick black
ce2b89552a
direct cursor tests require ncdirect_canget_cursor() #1790 2021-06-18 14:26:20 -04:00
nick black
c9a338e0fd
add ncdirect_canget_cursor() #1790 2021-06-18 14:24:35 -04:00
nick black
b50bab7880 remove unused function get_p2 from sixel.c 2021-06-18 14:07:39 -03:00
nick black
0bfef5b0ef
constify arguments to ncplane_notcurses/ncplane_pile 2021-06-18 10:35:30 -04:00
joseLuís
8f234368d8 make ncplane_pixelgeom require a const reference 2021-06-18 15:53:25 +02:00
joseLuís
1ea663229a [rust] refactor NcDirect
- add missing method `cansextant`.
- rename several cursor functions for consistency.
- fix & update poc-direct example.
- update docs.
2021-06-18 15:52:20 +02:00
joseLuís
e74e2e3f67 [rust] add NcCapabilities & related NcDirect functions 2021-06-18 12:17:45 +02:00
José Luis Cruz
7e37ebed92
add link to matrix chat badge in readme 2021-06-18 12:14:08 +02:00
igo95862
459f1857b2
Update Github Actions status badge
Move to new Ubuntu tests action
2021-06-18 09:28:23 +00:00
joseLuís
7249ecccc1 [rust] add NCSTYLE_UNDERCURL 2021-06-18 10:09:09 +02:00
igo95862
d15bfd6d02
Merge pull request #1764 from igo95862/split-github-actions
Split GitHub actions
2021-06-18 07:17:37 +00:00
nick black
e0276bbfdb undercurl unit test #1758 2021-06-17 20:30:01 -04:00
nick black
562cf1c468 direct mode: support undercurl throughout #1758 2021-06-17 20:30:01 -04:00
nick black
5559bbbebe NCSTYLE_UNDERCURL #1758 2021-06-17 20:30:01 -04:00
nick black
04c3dcc463 tinfo_debug_caps: add some style work #1758 2021-06-17 20:30:01 -04:00
nick black
bab79956cd
contour: adapt to new capabilities #1768 2021-06-17 18:05:04 -04:00
nick black
63e8d117dd
null media implementation: adapt to new capabilities struct #1768 2021-06-17 18:04:13 -04:00
nick black
0cfe426785 unify capabilites_canchangecolor #1768 2021-06-17 18:02:46 -04:00
nick black
912c897e67 ncdirect capabilites, all #1768 2021-06-17 18:02:46 -04:00
nick black
4aa702627a publicize nccapabilities structure, add ncdirect_capabilities() #1768 2021-06-17 18:02:46 -04:00
nick black
0e6f52533b introduce nccapabilites struct, move utf8/ccc therein #1768 2021-06-17 18:02:46 -04:00
nick black
7eedc7714d
recognize Contour via XTVERSION, and turn on quadrants/rgb for it #1781 2021-06-17 15:20:00 -04:00
joseLuís
c822aa345e [rust] remove duplicated method NcChannel.set_rgb 2021-06-17 16:53:07 +02:00
joseLuís
3e9b2c1fe4 [rust] rename NcChannelPair to NcChannels
- deprecate `NcChannelPair`
2021-06-17 00:00:31 +02:00
nick black
cf60ff5b94
don't restore bogon termios struct on setupterm failure #1778 2021-06-16 16:51:42 -04:00
joseLuís
48876b42fb [rust] rename several constructor methods
For semantic consistency with the Rust API guidelines.

- rename most `NcChannel` & `NcCell` methods starting with `with_`* to `from_`*.
- update examples.
2021-06-16 20:39:35 +02:00
joseLuís
4c0268997c [rust] rename NcColor to NcComponent.
- fix docs.
2021-06-16 20:26:36 +02:00
joseLuís
2ba4777443 [rust] rename NCCELL_* constants to NCALPHA_*
- move `NCALPHA_`* constants to the channel module where `NcAlphaBits`
is defined.
- fix several docs and doclinks.
- rustfmt.
2021-06-16 19:16:09 +02:00
nick black
9950d71e89
handle weird contour reply to CSI 11 #1780 2021-06-16 09:51:48 -04:00