Skip to content

ruxixa/coolcli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoolCLI

CoolCLI is a C++ Library providing CMD-styling functions

Usage

1. Clone the repository

git clone https://github.com/ruxixa/coolcli

2. Put the include\coolcli folder into your project

3. Include the file in your project

#include "include/coolcli/coolcli.hpp"    // Path to the file

Some Features

Console

Clear the console

coolcli::console::clearConsole();

Resize the console

coolcli::console::resizeConsole(70, 30);

Colors

Set text color

std::cout << coolcli::color::blue << "Hello, CoolCLI" << coolcli::color::reset << std::endl;

Set background color

std::cout << coolcli::background_color::cyan "Hello, CoolCLI" << coolcli::background_color::reset << std::endl

Example

#include "../include/coolcli/coolcli.hpp"
#include <iostream>

int main() {
    coolcli::console::clearConsole();
    coolcli::console::resizeConsole(70, 30);
    
    std::cout << coolcli::color::blue << "Hello, CoolCLI" << coolcli::color::reset << std::endl;
    std::cout << coolcli::background_color::cyan << "We cleared the console and resized it to 70x30"
              << coolcli::background_color::reset << std::endl;

    return 0;
}

About

CoolCLI is a C++ Library providing CMD-styling functions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published