CIOF v1.2.0-build
Char Input Output Format - A simple Input and Output utility library
Loading...
Searching...
No Matches
ciof.cpp File Reference
#include <iostream>
#include "../inc/ciof/ciof.hpp"

Go to the source code of this file.

Namespaces

namespace  ciof

Functions

void ciof::clear ()
 Clear the contents of the terminal NOTE: In Windows; enable ANSI by doing ciof::initANSI().
std::string ciof::colorSet (int _color)
 Set the colors from the default color palette from the terminal.
void ciof::cursorPos (int _row, int _col)
 Get the set cursor position using _row and _col Essentially calls the getCursorPos() function and then sets the row and col according to the getCursorPos() function.
std::string ciof::getCursorPos (int _row, int _col)
 Get the set cursor position using _row and _col.
void ciof::initANSI ()
 Initialize ANSI text option in Windows 10 or later NOTE: ONLY WORKS IN WINDOWS 10 OR LATER.
void ciof::input ()
 Empty input() function; Do not save any input to a variable, just leave it as a blank input.
void ciof::print ()
 Print a new line.
std::string ciof::rgbBgSet (unsigned int r, unsigned int g, unsigned int b)
 Set the RGB color for background in the terminal.
std::string ciof::rgbSet (unsigned int r, unsigned int g, unsigned int b)
 Set the RGB color in the terminal.
void ciof::showCursor (const bool &show)
 Show or hide the cursor from the terminal NOTE: In Windows; enable ANSI by doing ciof::initANSI().
std::string ciof::styleReset ()
 Reset all the styles and colors in the terminal.
std::string ciof::styleSet (const OutputStyle &_style)
 Set the styles according to the OutputStyle type.