Class: Muxr::Terminal::Cell
- Inherits:
-
Struct
- Object
- Struct
- Muxr::Terminal::Cell
- Defined in:
- lib/muxr/terminal.rb
Instance Attribute Summary collapse
-
#attrs ⇒ Object
Returns the value of attribute attrs.
-
#bg ⇒ Object
Returns the value of attribute bg.
-
#char ⇒ Object
Returns the value of attribute char.
-
#fg ⇒ Object
Returns the value of attribute fg.
Instance Method Summary collapse
Instance Attribute Details
#attrs ⇒ Object
Returns the value of attribute attrs
14 15 16 |
# File 'lib/muxr/terminal.rb', line 14 def attrs @attrs end |
#bg ⇒ Object
Returns the value of attribute bg
14 15 16 |
# File 'lib/muxr/terminal.rb', line 14 def bg @bg end |
#char ⇒ Object
Returns the value of attribute char
14 15 16 |
# File 'lib/muxr/terminal.rb', line 14 def char @char end |
#fg ⇒ Object
Returns the value of attribute fg
14 15 16 |
# File 'lib/muxr/terminal.rb', line 14 def fg @fg end |
Instance Method Details
#copy_from(other) ⇒ Object
22 23 24 25 26 27 |
# File 'lib/muxr/terminal.rb', line 22 def copy_from(other) self.char = other.char self.fg = other.fg self.bg = other.bg self.attrs = other.attrs end |
#reset! ⇒ Object
15 16 17 18 19 20 |
# File 'lib/muxr/terminal.rb', line 15 def reset! self.char = " " self.fg = nil self.bg = nil self.attrs = 0 end |