cpp-terminal
1.0.0
Small C++ library for writing multiplatform terminal applications
Loading...
Searching...
No Matches
terminal.hpp
Go to the documentation of this file.
1
/*
2
* cpp-terminal
3
* C++ library for writing multi-platform terminal applications.
4
*
5
* SPDX-FileCopyrightText: 2019-2024 cpp-terminal
6
*
7
* SPDX-License-Identifier: MIT
8
*/
9
10
#pragma once
11
12
#include "
cpp-terminal/terminal_impl.hpp
"
13
#include "
cpp-terminal/terminal_initializer.hpp
"
14
15
#include <string>
16
17
namespace
Term
18
{
19
20
static
const
TerminalInitializer terminal_initializer;
//NOLINT(cert-err58-cpp,fuchsia-statically-constructed-objects)
21
extern
Term::Terminal
&
terminal
;
22
23
// change the title of the terminal, only supported by a few terminals
24
std::string
terminal_title
(
const
std::string& title);
25
// clear the screen and the scroll-back buffer
26
std::string
clear_buffer
();
27
28
}
// namespace Term
Term::Terminal
Definition
terminal_impl.hpp:22
Term
Definition
args.cpp:13
Term::terminal
Term::Terminal & terminal
Definition
terminal.cpp:19
Term::terminal_title
std::string terminal_title(const std::string &title)
Definition
terminal.cpp:21
Term::clear_buffer
std::string clear_buffer()
Definition
terminal.cpp:23
terminal_impl.hpp
terminal_initializer.hpp
cpp-terminal
terminal.hpp
Generated by
1.11.0