miasm
Reverse engineering framework
utils.cosmetics Namespace Reference

Functions

def getTerminalSize ()
 
def write_colored (text, color, already_printed=0)
 
def write_underline (text)
 

Variables

string is_win = "Windows"
 
def WIDTH = getTerminalSize()[0]
 
dictionary colors
 

Function Documentation

◆ getTerminalSize()

def utils.cosmetics.getTerminalSize ( )

◆ write_colored()

def utils.cosmetics.write_colored (   text,
  color,
  already_printed = 0 
)

◆ write_underline()

def utils.cosmetics.write_underline (   text)

Variable Documentation

◆ colors

dictionary utils.cosmetics.colors
Initial value:
1 = {
2  "red": "\033[91;1m",
3  "end": "\033[0m",
4  "green": "\033[92;1m",
5  "lightcyan": "\033[96m",
6  "blue": "\033[94;1m"
7 }

◆ is_win

string utils.cosmetics.is_win = "Windows"

◆ WIDTH

def utils.cosmetics.WIDTH = getTerminalSize()[0]