fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes Altmanningertests: filter control sequences only when interactive1e858eae3

master
823 B31 linesraw
1#RUN: %fish %s
2#REQUIRES: command -v tmux
3
4isolated-tmux-start
5
6# Test moving around with up-or-search on a multi-line commandline.
7isolated-tmux send-keys 'echo 12' M-Enter 'echo ab' C-p 345 C-n cde
8tmux-sleep
9isolated-tmux capture-pane -p
10# CHECK: prompt 0> echo 12345
11# CHECK: echo abcde
12
13isolated-tmux send-keys C-c
14tmux-sleep
15isolated-tmux send-keys C-l
16isolated-tmux send-keys begin Enter 'echo 1' Enter e n d C-p 23
17tmux-sleep
18isolated-tmux capture-pane -p
19# CHECK: prompt 0> begin
20# CHECK: echo 123
21# CHECK: end
22
23# regression test
24isolated-tmux send-keys C-c # not sure why we need to wait after this
25tmux-sleep
26isolated-tmux send-keys 'bind S begin-selection' Enter C-l
27tmux-sleep
28isolated-tmux send-keys 'echo one two threeS' C-u C-y
29tmux-sleep
30isolated-tmux capture-pane -p
31# CHECK: prompt 1> echo one two three