module Vt100::DisplayAttributes
Public Instance Methods
bg_black(txt)
click to toggle source
# File lib/vt100/display_attributes.rb, line 53 def bg_black(txt) display_attr_esc 40, txt end
bg_blue(txt)
click to toggle source
# File lib/vt100/display_attributes.rb, line 69 def bg_blue(txt) display_attr_esc 44, txt end
bg_cyan(txt)
click to toggle source
# File lib/vt100/display_attributes.rb, line 77 def bg_cyan(txt) display_attr_esc 46, txt end
bg_green(txt)
click to toggle source
# File lib/vt100/display_attributes.rb, line 61 def bg_green(txt) display_attr_esc 42, txt end
bg_magenta(txt)
click to toggle source
# File lib/vt100/display_attributes.rb, line 73 def bg_magenta(txt) display_attr_esc 45, txt end
bg_red(txt)
click to toggle source
# File lib/vt100/display_attributes.rb, line 57 def bg_red(txt) display_attr_esc 41, txt end
bg_white(txt)
click to toggle source
# File lib/vt100/display_attributes.rb, line 81 def bg_white(txt) display_attr_esc 47, txt end
bg_yellow(txt)
click to toggle source
# File lib/vt100/display_attributes.rb, line 65 def bg_yellow(txt) display_attr_esc 43, txt end
bright(txt)
click to toggle source
# File lib/vt100/display_attributes.rb, line 9 def bright(txt) display_attr_esc 1, txt end
display_attr_esc(attr, txt)
click to toggle source
# File lib/vt100/display_attributes.rb, line 5 def display_attr_esc(attr, txt) "\x1B[#{attr}m#{txt}\x1B[0m" end
fg_black(txt)
click to toggle source
# File lib/vt100/display_attributes.rb, line 21 def fg_black(txt) display_attr_esc 30, txt end
fg_blue(txt)
click to toggle source
# File lib/vt100/display_attributes.rb, line 37 def fg_blue(txt) display_attr_esc 34, txt end
fg_cyan(txt)
click to toggle source
# File lib/vt100/display_attributes.rb, line 45 def fg_cyan(txt) display_attr_esc 36, txt end
fg_green(txt)
click to toggle source
# File lib/vt100/display_attributes.rb, line 29 def fg_green(txt) display_attr_esc 32, txt end
fg_magenta(txt)
click to toggle source
# File lib/vt100/display_attributes.rb, line 41 def fg_magenta(txt) display_attr_esc 35, txt end
fg_red(txt)
click to toggle source
# File lib/vt100/display_attributes.rb, line 25 def fg_red(txt) display_attr_esc 31, txt end
fg_white(txt)
click to toggle source
# File lib/vt100/display_attributes.rb, line 49 def fg_white(txt) display_attr_esc 37, txt end
fg_yellow(txt)
click to toggle source
# File lib/vt100/display_attributes.rb, line 33 def fg_yellow(txt) display_attr_esc 33, txt end
underscore(txt)
click to toggle source
# File lib/vt100/display_attributes.rb, line 13 def underscore(txt) display_attr_esc 4, txt end