diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2022-06-30 16:46:26 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2022-06-30 16:46:26 +0100 |
commit | f08c019d419d7deefce2e8ab699aad404895355a (patch) | |
tree | 12f73a102a2716f6815f1b7312d71d556749dc28 | |
parent | c3af8f6b16eb770796fc1977ead90d02f9b82de4 (diff) | |
download | rtmux-f08c019d419d7deefce2e8ab699aad404895355a.tar.gz rtmux-f08c019d419d7deefce2e8ab699aad404895355a.tar.bz2 rtmux-f08c019d419d7deefce2e8ab699aad404895355a.zip |
Do not set Hls for hyperlinks on ncurses older than 5.9 (for example macOS).
-rw-r--r-- | tty-features.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tty-features.c b/tty-features.c index 396a351e..e387f823 100644 --- a/tty-features.c +++ b/tty-features.c @@ -89,7 +89,11 @@ static const struct tty_feature tty_feature_clipboard = { /* Terminal supports OSC 8 hyperlinks. */ static const char *tty_feature_hyperlinks_capabilities[] = { +#if defined (__OpenBSD__) || (defined(NCURSES_VERSION_MAJOR) && \ + (NCURSES_VERSION_MAJOR > 5 || \ + (NCURSES_VERSION_MAJOR == 5 && NCURSES_VERSION_MINOR > 8))) "*:Hls=\\E]8;%?%p1%l%tid=%p1%s%;;%p2%s\\E\\\\", +#endif NULL }; static const struct tty_feature tty_feature_hyperlinks = { |