Commit Graph

5641 Commits

Author SHA1 Message Date
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
nick black
7d0375f8e0
don't put on airs, "Colors" 2021-06-16 05:55:38 -04:00
nick black
8de306a899
more crap for notcurses_debug_caps() 2021-06-16 05:54:36 -04:00
nick black
f8ca942d84 term_bg_rgb8: fix longstanding FIXME now that we detect the bg #1292 2021-06-16 05:42:21 -04:00
nick black
302d69289a [termdesc] parse a 8-bit rgb spec preferentially, to get foot working #1292 2021-06-16 05:42:21 -04:00
nick black
5f130b407d CSI_BGQ: four slashes too many, whoops #1292 2021-06-16 05:42:21 -04:00
nick black
c814ee6137 [termdesc] parse bg query reply, set up bg_collides_default #1292 2021-06-16 05:42:21 -04:00
nick black
15cda99d88 sent background query along with our other initial queries #1292 2021-06-16 05:42:21 -04:00
nick black
dd9e3e673b
notcurses_debug_caps(): better utilize space 2021-06-16 02:57:27 -04:00
nick black
38bb8bd3b7
'at least a', not 'at least an' 2021-06-16 01:01:49 -04:00
nick black
44b398cac7
poll.h, not sys/poll.h 2021-06-15 23:44:03 -04:00
nick black
476ebe5533
tie warning about no multimedia to linking with null implementation #1771 2021-06-15 23:39:44 -04:00
nick black
3cf971ac67 update ncvisual_plane.3 for ncplane_as_rgba() #1441 2021-06-15 22:33:20 -04:00