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.
-
#hyperlink ⇒ Object
Returns the value of attribute hyperlink.
Instance Method Summary collapse
Instance Attribute Details
#attrs ⇒ Object
Returns the value of attribute attrs
28 29 30 |
# File 'lib/muxr/terminal.rb', line 28 def attrs @attrs end |
#bg ⇒ Object
Returns the value of attribute bg
28 29 30 |
# File 'lib/muxr/terminal.rb', line 28 def bg @bg end |
#char ⇒ Object
Returns the value of attribute char
28 29 30 |
# File 'lib/muxr/terminal.rb', line 28 def char @char end |
#fg ⇒ Object
Returns the value of attribute fg
28 29 30 |
# File 'lib/muxr/terminal.rb', line 28 def fg @fg end |
#hyperlink ⇒ Object
Returns the value of attribute hyperlink
28 29 30 |
# File 'lib/muxr/terminal.rb', line 28 def hyperlink @hyperlink end |
Instance Method Details
#copy_from(other) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/muxr/terminal.rb', line 37 def copy_from(other) self.char = other.char self.fg = other.fg self.bg = other.bg self.attrs = other.attrs self.hyperlink = other.hyperlink end |
#reset! ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/muxr/terminal.rb', line 29 def reset! self.char = " " self.fg = nil self.bg = nil self.attrs = 0 self.hyperlink = nil end |