mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 17:12:50 +08:00
24e7a2ca60
Some checks are pending
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
tmux -V prints "tmux next-3.4" there.
35 lines
811 B
Fish
35 lines
811 B
Fish
#RUN: %fish %s
|
|
#REQUIRES: command -v tmux && ! tmux -V | grep -qE '^tmux (next-3.4|3\.[0123][a-z]*($|[.-]))'
|
|
|
|
isolated-tmux-start
|
|
|
|
isolated-tmux send-keys '
|
|
function fish_prompt
|
|
printf "prompt-line-1\\nprompt-line-2> "
|
|
commandline -f repaint
|
|
end
|
|
' Enter
|
|
isolated-tmux send-keys C-l \
|
|
': 1' Enter \
|
|
': 3' Enter \
|
|
': 5' Enter
|
|
tmux-sleep
|
|
|
|
# Screen looks like
|
|
|
|
# [y=0] prompt-line-1
|
|
# [y=1] prompt-line-2> : 1
|
|
# [y=2] prompt-line-1
|
|
# [y=3] prompt-line-2> : 3
|
|
# [y=4] prompt-line-1
|
|
# [y=5] prompt-line-2> : 5
|
|
# [y=6] prompt-line-1
|
|
# [y=7] prompt-line-2>
|
|
|
|
isolated-tmux copy-mode
|
|
isolated-tmux send-keys -X previous-prompt
|
|
isolated-tmux send-keys -X previous-prompt
|
|
tmux-sleep
|
|
isolated-tmux display-message -p '#{copy_cursor_y} #{copy_cursor_line}'
|
|
# CHECK: {{[46]}} prompt-line-1
|