Class: Skylab::Myterm::ItermProxy::SessionProxy
- Inherits:
-
Object
- Object
- Skylab::Myterm::ItermProxy::SessionProxy
show all
- Extended by:
- AppscriptDelegator
- Defined in:
- lib/myterm/api.rb
Instance Method Summary
collapse
delegated_attr_accessors, delegated_attr_readers, delegated_attr_writers
Constructor Details
#initialize(app, term_idx, session_idx) ⇒ SessionProxy
Returns a new instance of SessionProxy.
189
190
191
|
# File 'lib/myterm/api.rb', line 189
def initialize app, term_idx, session_idx
@app, @term_idx, @sessions_idx = [app, term_idx, session_idx]
end
|
Instance Method Details
#background_color ⇒ Object
181
182
183
|
# File 'lib/myterm/api.rb', line 181
def background_color
Color[resource.background_color.get]
end
|
#foreground_color ⇒ Object
185
186
187
|
# File 'lib/myterm/api.rb', line 185
def foreground_color
Color[resource.foreground_color.get]
end
|
#resource ⇒ Object
193
194
195
|
# File 'lib/myterm/api.rb', line 193
def resource
@app.terminals[@term_idx].sessions[@sessions_idx]
end
|