Skip to content

Commit 38fdef0

Browse files
committed
fix: ensure write returns the number of bytes written
1 parent 18f3daf commit 38fdef0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/TerminalRegressionTests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ module TerminalRegressionTests
6767
end
6868
for T in (Vector{UInt8}, Array, AbstractArray, String, Symbol, Any, Char, UInt8)
6969
function Base.write(term::EmulatedTerminal,a::T)
70-
write(term.out_stream, a)
70+
b = write(term.out_stream, a)
7171
if term.aggressive_yield
7272
notify(term.step)
7373
end
74+
return b
7475
end
7576
end
7677
Base.eof(term::EmulatedTerminal) = false

0 commit comments

Comments
 (0)