https://github.com/flagarde/cpp-terminfo
C++ library for terminal terminfo capabilities
https://github.com/flagarde/cpp-terminfo
cpp cpp11 standalone terminal terminfo terminfo-parser terminfo-parsing-library
Last synced: about 1 month ago
JSON representation
C++ library for terminal terminfo capabilities
- Host: GitHub
- URL: https://github.com/flagarde/cpp-terminfo
- Owner: flagarde
- License: mit
- Created: 2024-09-03T15:50:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-11-24T20:19:00.000Z (6 months ago)
- Last Synced: 2025-11-28T08:01:18.416Z (6 months ago)
- Topics: cpp, cpp11, standalone, terminal, terminfo, terminfo-parser, terminfo-parsing-library
- Language: C++
- Homepage: https://github.com/flagarde/cpp-terminfo
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cpp-terminfo
C++11 standalone (not database needed), cross-platform terminfo parser and library to access terminal capabilities.
```cpp
#include "cpp-terminfo/Get.hpp"
#include "cpp-terminfo/Print.hpp"
#include
int main(int argc, char* argv[])
{
std::string name{};
std::cout << "Insert a terminal name " << std::endl;
while(std::cin >> name)
{
try
{
const Terminfo::Terminfo& terminfo = Terminfo::Get::terminfo(name);
std::cout << terminfo;
std::cout << "Insert a terminal name " << std::endl;
std::cout<< "Number of lines: "<