We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5c93c3 commit d98f346Copy full SHA for d98f346
tests/test_pane.py
@@ -25,6 +25,17 @@ def test_resize_pane(session):
25
assert int(pane1['pane_height']) == 3
26
27
28
+def test_send_keys(session):
29
+ pane = session.attached_window.attached_pane
30
+ pane.send_keys('c-c', literal=True)
31
+
32
+ pane_contents = '\n'.join(pane.cmd('capture-pane', '-p').stdout)
33
+ assert 'c-c' in pane_contents
34
35
+ pane.send_keys('c-a', literal=False)
36
+ assert 'c-a' not in pane_contents, 'should not print to pane'
37
38
39
def test_set_height(session):
40
window = session.new_window(window_name='test_set_height')
41
window.split_window()
0 commit comments