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