Class: Appear::Terminal::TerminalApp
- Inherits:
-
MacTerminal
- Object
- BaseService
- Service
- MacTerminal
- Appear::Terminal::TerminalApp
- Defined in:
- lib/appear/terminal.rb
Overview
TerminalApp support service.
Instance Method Summary collapse
Methods inherited from MacTerminal
Methods inherited from BaseService
delegate, #initialize, require_service, required_services
Constructor Details
This class inherits a constructor from Appear::BaseService
Instance Method Details
#app_name ⇒ Object
77 78 79 |
# File 'lib/appear/terminal.rb', line 77 def app_name 'Terminal' end |
#panes ⇒ Object
82 83 84 85 86 87 88 |
# File 'lib/appear/terminal.rb', line 82 def panes pids = services.processes.pgrep(app_name) services.mac_os.call_method('terminal_panes').map do |hash| hash[:pids] = pids OpenStruct.new(hash) end end |
#reveal_pane(pane) ⇒ Object
91 92 93 |
# File 'lib/appear/terminal.rb', line 91 def reveal_pane(pane) services.mac_os.call_method('terminal_reveal_tty', pane.tty) end |