Markopy
Utilizing Markov Models for brute forcing attacks
term.cpp File Reference

Terminal handler for pretty stuff like colors. More...

#include "term.h"
#include <string>
Include dependency graph for term.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const Terminal::color &c)
 

Detailed Description

Terminal handler for pretty stuff like colors.

Authors
Ata Hakçıl

pretty colors for Terminal. Windows Only.

Definition in file term.cpp.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const Terminal::color c 
)

Definition at line 66 of file term.cpp.

66  {
67  char buf[6];
68  sprintf(buf,"%d",Terminal::colormap.find(c)->second);
69  os << "\e[1;" << buf << "m";
70  return os;
71 }

References Markov::API::CLI::Terminal::colormap.