Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
dc0f1510
Commit
dc0f1510
authored
Jan 12, 2018
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement CSI-K, tweak tests.
parent
945d2e1e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
3 deletions
+23
-3
u00010.vtc
bin/varnishtest/tests/u00010.vtc
+1
-1
u00011.vtc
bin/varnishtest/tests/u00011.vtc
+1
-1
vtc_process.c
bin/varnishtest/vtc_process.c
+2
-1
vtc_term.c
bin/varnishtest/vtc_term.c
+19
-0
No files found.
bin/varnishtest/tests/u00010.vtc
View file @
dc0f1510
...
@@ -18,4 +18,4 @@ client c1 {
...
@@ -18,4 +18,4 @@ client c1 {
rxresp
rxresp
} -run
} -run
process p1 -need-bytes
2
000 -screen_dump -write {q} -wait
process p1 -need-bytes
1
000 -screen_dump -write {q} -wait
bin/varnishtest/tests/u00011.vtc
View file @
dc0f1510
...
@@ -24,4 +24,4 @@ process p1 -writeln {quit}
...
@@ -24,4 +24,4 @@ process p1 -writeln {quit}
process p1 -need-bytes 400
process p1 -need-bytes 400
process p1 -screen_dump -write
ln {quit}
-wait
process p1 -screen_dump -write
"quit\r"
-wait
bin/varnishtest/vtc_process.c
View file @
dc0f1510
...
@@ -714,10 +714,11 @@ cmd_process(CMD_ARGS)
...
@@ -714,10 +714,11 @@ cmd_process(CMD_ARGS)
u
=
strtoumax
(
av
[
1
],
NULL
,
0
);
u
=
strtoumax
(
av
[
1
],
NULL
,
0
);
av
++
;
av
++
;
do
{
do
{
usleep
(
1
00000
);
usleep
(
5
00000
);
AZ
(
pthread_mutex_lock
(
&
p
->
mtx
));
AZ
(
pthread_mutex_lock
(
&
p
->
mtx
));
v
=
p
->
stdout_bytes
;
v
=
p
->
stdout_bytes
;
AZ
(
pthread_mutex_unlock
(
&
p
->
mtx
));
AZ
(
pthread_mutex_unlock
(
&
p
->
mtx
));
vtc_log
(
p
->
vl
,
4
,
"Have %ju bytes"
,
v
);
}
while
(
v
<
u
);
}
while
(
v
<
u
);
continue
;
continue
;
}
}
...
...
bin/varnishtest/vtc_term.c
View file @
dc0f1510
...
@@ -119,6 +119,25 @@ term_escape(struct term *tp, int c, int n)
...
@@ -119,6 +119,25 @@ term_escape(struct term *tp, int c, int n)
vtc_fatal
(
tp
->
vl
,
"ANSI J[%d]"
,
tp
->
arg
[
0
]);
vtc_fatal
(
tp
->
vl
,
"ANSI J[%d]"
,
tp
->
arg
[
0
]);
term_clear
(
tp
);
term_clear
(
tp
);
break
;
break
;
case
'K'
:
// erase in line 0=right, 1=left, 2=full line
switch
(
tp
->
arg
[
0
])
{
case
0
:
for
(
i
=
tp
->
col
+
1
;
i
<
tp
->
ncol
;
i
++
)
tp
->
vram
[
tp
->
line
][
i
]
=
' '
;
break
;
case
1
:
for
(
i
=
0
;
i
<
tp
->
col
;
i
++
)
tp
->
vram
[
tp
->
line
][
i
]
=
' '
;
break
;
case
2
:
for
(
i
=
0
;
i
<
tp
->
ncol
;
i
++
)
tp
->
vram
[
tp
->
line
][
i
]
=
' '
;
break
;
default:
vtc_fatal
(
tp
->
vl
,
"ANSI K[%d]"
,
tp
->
arg
[
0
]);
}
break
;
case
'm'
:
case
'm'
:
// Ignore Graphic Rendition settings
// Ignore Graphic Rendition settings
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment