kaycxx-term
C++ terminal library
Loading...
Searching...
No Matches
kaycxx
term
hyperlink.hpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2026 Klaus Reimer <k@ailis.de>
2
// SPDX-License-Identifier: MIT
3
4
#pragma once
5
11
#include <string>
12
#include <string_view>
13
14
namespace
kaycxx::term {
15
19
struct
hyperlink
{
21
std::string
url
;
22
24
std::string
text
;
25
};
26
34
inline
hyperlink
link
(std::string_view url, std::string_view text) {
35
return
{
36
.
url
= std::string(url),
37
.text = std::string(text)
38
};
39
}
40
41
}
// namespace kaycxx::term
kaycxx::term::link
hyperlink link(std::string_view url, std::string_view text)
Creates a terminal hyperlink value.
Definition
hyperlink.hpp:34
kaycxx::term::hyperlink
Terminal hyperlink value.
Definition
hyperlink.hpp:19
kaycxx::term::hyperlink::url
std::string url
Link target URL.
Definition
hyperlink.hpp:21
kaycxx::term::hyperlink::text
std::string text
Visible link text.
Definition
hyperlink.hpp:24
Generated by
1.9.8