2024-04-12 18:19:32 +08:00
|
|
|
#RUN: %fish %s
|
2024-03-10 16:40:44 +08:00
|
|
|
#REQUIRES: command -v tmux
|
|
|
|
|
|
|
|
isolated-tmux-start
|
|
|
|
|
2024-03-30 23:10:12 +08:00
|
|
|
isolated-tmux send-keys 'bind alt-g "commandline -p -C -- -4"' Enter C-l
|
2024-03-10 16:40:44 +08:00
|
|
|
isolated-tmux send-keys 'echo bar|cat' \eg foo
|
|
|
|
tmux-sleep
|
|
|
|
isolated-tmux capture-pane -p
|
|
|
|
# CHECK: prompt 1> echo foobar|cat
|
2024-10-25 14:20:20 +08:00
|
|
|
|
|
|
|
isolated-tmux send-keys C-k C-u C-l 'commandline -i (seq $LINES) scroll_here' Enter
|
|
|
|
tmux-sleep
|
|
|
|
isolated-tmux capture-pane -p
|
|
|
|
# CHECK: 2
|
|
|
|
# CHECK: 3
|
|
|
|
# CHECK: 4
|
|
|
|
# CHECK: 5
|
|
|
|
# CHECK: 6
|
|
|
|
# CHECK: 7
|
|
|
|
# CHECK: 8
|
|
|
|
# CHECK: 9
|
|
|
|
# CHECK: 10
|
|
|
|
# CHECK: scroll_here
|