NAME=panels clean uncached command is reused while navigating another panel
FILE=-
TIMEOUT=10
CMDS=<<EOF
"$capture=v @e:scr.interactive=true > $panel"
"$probe=f counter=counter+1;?e PANEL_OUTPUT;?v counter"
e scr.wheel=false
e scr.cols=100
e scr.rows=30
f counter=0
<e$probe\n00000000\tjjkkQ
$capture > /dev/null
?v counter
cat $panel~PANEL_OUTPUT~?
EOF
EXPECT=<<EOF
0x2
1
EOF
RUN

NAME=panels menu navigation reuses uncached command output
FILE=-
TIMEOUT=10
CMDS=<<EOF
"$capture=v @e:scr.interactive=true > $panel"
"$probe=f counter=counter+1;?e PANEL_OUTPUT"
e scr.wheel=false
f counter=0
<e$probe\nMjjjjkkkkqqQ
$capture > /dev/null
?v counter
cat $panel~PANEL_OUTPUT~?
EOF
EXPECT=<<EOF
0x3
1
EOF
RUN

NAME=panels disassembly navigation leaves pinned commands unchanged
FILE=-
TIMEOUT=10
ARGS=-a x86 -b 64
CMDS=<<EOF
"$capture=v @e:scr.interactive=true > $panel"
"$probe=?v $$+0xabc00000"
e scr.wheel=false
e scr.cols=100
e scr.rows=30
wx 909090c3
<e$probe\n=jjj q-\tDj000000Q
$capture > /dev/null
cat $panel~0xabc00000~?
cat $panel~0xabc00001~?
EOF
EXPECT=<<EOF
1
0
EOF
RUN

NAME=panels disassembly navigation refreshes other synchronized commands
FILE=-
TIMEOUT=10
ARGS=-a x86 -b 64
CMDS=<<EOF
"$capture=v @e:scr.interactive=true > $panel"
"$probe=?v $$+0xabc00000"
e scr.wheel=false
e scr.cols=100
e scr.rows=30
wx 909090c3
<e$probe\n-\tDj000000Q
$capture > /dev/null
cat $panel~0xabc00001~?
EOF
EXPECT=<<EOF
1
EOF
RUN

NAME=panels seek invalidates synchronized uncached commands
FILE=-
TIMEOUT=10
ARGS=-a x86 -b 64
CMDS=<<EOF
"$capture=v @e:scr.interactive=true > $panel"
"$probe=f counter=counter+1;?v $$+0xabc00000"
e scr.wheel=false
e scr.cols=100
e scr.rows=30
f counter=0
<e$probe\n:s 0x20\n\n00000000Q
$capture > /dev/null
?v counter
cat $panel~0xabc00020~?
EOF
EXPECT=<<EOF
0x2
1
EOF
RUN
