Class: Terminitor::AbstractCapture
- Inherits:
-
Object
- Object
- Terminitor::AbstractCapture
- Defined in:
- lib/terminitor/abstract_capture.rb
Overview
This AbstractCapture defines the basic methods that the Capture class should inherit
Direct Known Subclasses
CmdCapture, ItermCapture, KonsoleCapture, MacCapture, TerminatorCapture
Instance Method Summary collapse
-
#capture_settings ⇒ Object
Generates .term file from settings of currently opened terminal windows and tabs.
-
#capture_windows ⇒ Object
Returns array of settings of currently opened windows, [{:options => {:window_option1 => … }, :tabs => [=> {:tab_option1 => … }]}] Needs to be defined for specific platform.
Instance Method Details
#capture_settings ⇒ Object
Generates .term file from settings of currently opened terminal windows and tabs
5 6 7 8 9 10 11 12 13 |
# File 'lib/terminitor/abstract_capture.rb', line 5 def capture_settings capture_windows.inject("") do |config, w| config << generate_object_dsl('window', w) do |dsl| w[:tabs].each do |t| dsl << generate_object_dsl('tab', t, 4) end end end end |
#capture_windows ⇒ Object
Returns array of settings of currently opened windows,
- {:options => {:window_option1 => … }, :tabs => [=> {:tab_option1 => … }]}
-
Needs to be defined for specific platform
18 19 |
# File 'lib/terminitor/abstract_capture.rb', line 18 def capture_windows end |