2024-04-14 00:23:46 +08:00
|
|
|
#RUN: %fish %s
|
|
|
|
#REQUIRES: command -v tmux
|
|
|
|
|
|
|
|
isolated-tmux-start
|
|
|
|
|
|
|
|
isolated-tmux send-keys \
|
2024-04-26 03:36:31 +08:00
|
|
|
"sleep 0.5 &" Enter \
|
2024-04-14 00:23:46 +08:00
|
|
|
"echo hello"
|
2024-04-26 03:36:31 +08:00
|
|
|
sleep 1
|
2024-04-14 00:23:46 +08:00
|
|
|
isolated-tmux send-keys Space world
|
|
|
|
isolated-tmux capture-pane -p
|
2024-04-26 03:36:31 +08:00
|
|
|
# CHECK: prompt 0> sleep 0.5 &
|
2024-04-14 00:23:46 +08:00
|
|
|
# CHECK: prompt 0> echo hello
|
2024-04-26 03:36:31 +08:00
|
|
|
# CHECK: fish: Job 1, 'sleep 0.5 &' has ended
|
2024-05-07 23:54:30 +08:00
|
|
|
# (I've seen this print " world", I guess it depends on tmux version and how big it thinks the terminal is)
|
|
|
|
# CHECK: {{.*}} world
|