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: 9 months 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: 2024-11-05T21:05:44.000Z (about 1 year ago)
- Last Synced: 2025-02-03T07:59:28.154Z (11 months ago)
- Topics: cpp, cpp11, standalone, terminal, terminfo, terminfo-parser, terminfo-parsing-library
- Language: C++
- Homepage: https://github.com/flagarde/cpp-terminfo
- Size: 144 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: "<