2022-01-31 02:19:43 +08:00
|
|
|
#RUN: %fish %s
|
|
|
|
#REQUIRES: command -v tmux
|
2022-03-13 18:48:52 +08:00
|
|
|
# disable on github actions because it's flakey
|
|
|
|
#REQUIRES: test -z "$CI"
|
2022-01-31 02:19:43 +08:00
|
|
|
|
2023-01-17 16:14:54 +08:00
|
|
|
set -g isolated_tmux_fish_extra_args -C '
|
|
|
|
set -g fish_autosuggestion_enabled 0
|
|
|
|
'
|
2022-01-31 02:19:43 +08:00
|
|
|
isolated-tmux-start
|
|
|
|
|
|
|
|
isolated-tmux send-keys 'true needle' Enter
|
|
|
|
# CHECK: prompt 0> true needle
|
|
|
|
tmux-sleep
|
|
|
|
isolated-tmux send-keys 'true hay ee hay' Enter
|
|
|
|
# CHECK: prompt 1> true hay ee hay
|
2022-07-17 08:46:12 +08:00
|
|
|
tmux-sleep
|
2022-01-31 02:19:43 +08:00
|
|
|
isolated-tmux send-keys C-p C-a M-f M-f M-f M-.
|
|
|
|
# CHECK: prompt 2> true hay needle hay
|
|
|
|
tmux-sleep
|
|
|
|
isolated-tmux capture-pane -p
|
2023-01-17 16:14:54 +08:00
|
|
|
|
|
|
|
isolated-tmux send-keys C-e C-u true Up Up Escape
|
|
|
|
tmux-sleep
|
|
|
|
isolated-tmux capture-pane -p | grep 'prompt 2'
|
|
|
|
# CHECK: prompt 2> true
|
|
|
|
isolated-tmux send-keys C-z _
|
|
|
|
tmux-sleep
|
|
|
|
isolated-tmux capture-pane -p | grep 'prompt 2'
|
|
|
|
# CHECK: prompt 2> _
|