lib/ttytest/terminal.rb in ttytest2-0.9.11 vs lib/ttytest/terminal.rb in ttytest2-0.9.12

- old
+ new

@@ -22,10 +22,14 @@ # Simulate typing keys into the terminal. For canonical cli's/shells which read line by line. # @param [String] keys keys to send to the terminal # @!method send_keys_one_at_a_time(keys) # Simulate typing keys into the terminal. For noncanonical cli's/shells which read character by character. # @param [String] keys keys to send to the terminal + # @!method send_line(line) + # Simulate sending a line to the terminal and hitting enter. + # @!method send_line_then_sleep(line, sleep_time) + # Simulate sending a line to the terminal and hitting enter, then wait for the sleep_time. # @!method send_newline # Simulate typing enter by sending newline character to the terminal. # @!method send_newlines # Simulates sending newline the specified number of times. # @param [Integer] number of times to send newline @@ -72,9 +76,10 @@ # @!method capture # Capture the current state of the terminal # @return [Capture] instantaneous state of the terminal when called def_delegators :@driver_terminal, :send_keys, :send_keys_one_at_a_time, + :send_line, :send_line_then_sleep, :send_newline, :send_newlines, :send_delete, :send_deletes, :send_backspace, :send_backspaces, :send_left_arrow, :send_left_arrows, :send_right_arrow, :send_right_arrows, :send_down_arrow, :send_down_arrows, :send_up_arrow, :send_up_arrows,