2024-03-30 15:10:12 +00:00
|
|
|
#RUN: %fish %s | %filter-ctrlseqs
|
2021-07-03 11:57:21 +00:00
|
|
|
#REQUIRES: command -v tmux
|
|
|
|
|
2021-08-29 07:44:22 +00:00
|
|
|
set -g isolated_tmux_fish_extra_args -C '
|
2021-07-03 11:57:21 +00:00
|
|
|
function fish_prompt; printf "prompt $status_generation> <$prompt_var> "; end
|
|
|
|
function on_prompt_var --on-variable prompt_var
|
|
|
|
commandline -f repaint
|
|
|
|
end
|
|
|
|
'
|
|
|
|
|
2021-09-24 15:07:17 +00:00
|
|
|
isolated-tmux-start
|
2021-09-04 23:54:08 +00:00
|
|
|
|
2021-08-29 07:44:22 +00:00
|
|
|
isolated-tmux capture-pane -p
|
2021-07-03 11:57:21 +00:00
|
|
|
# CHECK: prompt 0> <>
|
|
|
|
|
2021-08-29 07:44:22 +00:00
|
|
|
set -q CI && set sleep sleep 10
|
2021-07-03 11:57:21 +00:00
|
|
|
set -U prompt_var changed
|
2021-09-24 15:07:17 +00:00
|
|
|
tmux-sleep
|
2021-08-29 07:44:22 +00:00
|
|
|
isolated-tmux capture-pane -p
|
2021-07-03 11:57:21 +00:00
|
|
|
# CHECK: prompt 0> <changed>
|