Module: TTYtest
- Extended by:
- Forwardable
- Defined in:
- lib/ttytest.rb,
lib/ttytest/capture.rb,
lib/ttytest/version.rb,
lib/ttytest/matchers.rb,
lib/ttytest/terminal.rb,
lib/ttytest/constants.rb,
lib/ttytest/tmux/driver.rb,
lib/ttytest/tmux/session.rb
Overview
some constants that can be used with send_keys, just to help out people creating tests
Defined Under Namespace
Modules: Matchers, Tmux Classes: Capture, MatchError, Terminal
Constant Summary collapse
- VERSION =
'0.9.7'
- BACKSPACE =
127.chr
- TAB =
9.chr
- CTRLF =
6.chr
- CTRLC =
3.chr
- CTRLD =
'\004'
- ESCAPE =
27.chr
- UP_ARROW =
"#{ESCAPE}[A".freeze
- DOWN_ARROW =
"#{ESCAPE}[B".freeze
- RIGHT_ARROW =
"#{ESCAPE}[C".freeze
- LEFT_ARROW =
"#{ESCAPE}[D".freeze
- CLEAR =
"#{ESCAPE}[2J".freeze
Class Attribute Summary collapse
-
.default_max_wait_time ⇒ Object
Returns the value of attribute default_max_wait_time.
-
.driver ⇒ Object
Returns the value of attribute driver.
Class Method Summary collapse
-
.new_terminal(command, width: 80, height: 24) ⇒ Terminal
Create a new terminal through the current driver.
Class Attribute Details
.default_max_wait_time ⇒ Object
Returns the value of attribute default_max_wait_time.
11 12 13 |
# File 'lib/ttytest.rb', line 11 def default_max_wait_time @default_max_wait_time end |
.driver ⇒ Object
Returns the value of attribute driver.
11 12 13 |
# File 'lib/ttytest.rb', line 11 def driver @driver end |
Class Method Details
.new_terminal(command, width: 80, height: 24) ⇒ Terminal
Create a new terminal through the current driver.
20 |
# File 'lib/ttytest.rb', line 20 def_delegators :driver, :new_terminal |