kaycxx-term
C++ terminal library
Loading...
Searching...
No Matches
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
14namespace kaycxx::term {
15
19struct hyperlink {
21 std::string url;
22
24 std::string text;
25};
26
34inline 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