Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/HardsploitAPI/Core/HardsploitAPI.rb

Instance Method Summary collapse

Instance Method Details

#bg_blackObject



20
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 20

def bg_black;       "\e[40m#{self}\e[0m" end

#bg_blueObject



24
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 24

def bg_blue;        "\e[44m#{self}\e[0m" end

#bg_brownObject



23
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 23

def bg_brown;       "\e[43m#{self}\e[0m" end

#bg_cyanObject



26
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 26

def bg_cyan;        "\e[46m#{self}\e[0m" end

#bg_grayObject



27
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 27

def bg_gray;        "\e[47m#{self}\e[0m" end

#bg_greenObject



22
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 22

def bg_green;       "\e[42m#{self}\e[0m" end

#bg_magentaObject



25
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 25

def bg_magenta;     "\e[45m#{self}\e[0m" end

#bg_redObject



21
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 21

def bg_red;         "\e[41m#{self}\e[0m" end

#blackObject



11
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 11

def black;          "\e[30m#{self}\e[0m" end


32
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 32

def blink;          "\e[5m#{self}\e[25m" end

#blueObject



15
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 15

def blue;           "\e[34m#{self}\e[0m" end

#boldObject



29
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 29

def bold;           "\e[1m#{self}\e[22m" end

#brownObject



14
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 14

def brown;          "\e[33m#{self}\e[0m" end

#cyanObject



17
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 17

def cyan;           "\e[36m#{self}\e[0m" end

#grayObject



18
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 18

def gray;           "\e[37m#{self}\e[0m" end

#greenObject



13
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 13

def green;          "\e[32m#{self}\e[0m" end

#italicObject



30
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 30

def italic;         "\e[3m#{self}\e[23m" end

#magentaObject



16
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 16

def magenta;        "\e[35m#{self}\e[0m" end

#redObject



12
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 12

def red;            "\e[31m#{self}\e[0m" end

#reverse_colorObject



33
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 33

def reverse_color;  "\e[7m#{self}\e[27m" end

#underlineObject



31
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 31

def underline;      "\e[4m#{self}\e[24m" end