2021-08-29 07:44:22 +00:00
|
|
|
#RUN: %fish %s
|
2021-08-01 15:41:56 +00:00
|
|
|
#REQUIRES: command -v tmux
|
|
|
|
|
2021-09-24 15:07:17 +00:00
|
|
|
isolated-tmux-start
|
|
|
|
|
2021-08-01 15:41:56 +00:00
|
|
|
# Test moving around with up-or-search on a multi-line commandline.
|
2021-08-29 07:44:22 +00:00
|
|
|
isolated-tmux send-keys 'echo 12' M-Enter 'echo ab' C-p 345 C-n cde
|
2021-09-24 15:07:17 +00:00
|
|
|
tmux-sleep
|
2021-08-29 07:44:22 +00:00
|
|
|
isolated-tmux capture-pane -p
|
2021-08-01 15:41:56 +00:00
|
|
|
# CHECK: prompt 0> echo 12345
|
|
|
|
# CHECK: echo abcde
|
2024-01-09 17:11:14 +00:00
|
|
|
|
|
|
|
isolated-tmux send-keys C-c
|
|
|
|
tmux-sleep
|
|
|
|
isolated-tmux send-keys C-l
|
|
|
|
isolated-tmux send-keys begin Enter 'echo 1' Enter e n d C-p 23
|
|
|
|
tmux-sleep
|
|
|
|
isolated-tmux capture-pane -p
|
|
|
|
# CHECK: prompt 0> begin
|
|
|
|
# CHECK: echo 123
|
|
|
|
# CHECK: end
|