Skip to content

Commit a6b3d55

Browse files
authored
Merge pull request #18 from JuliaDebug/sp/write-return-value
fix: ensure write returns the number of bytes written
2 parents 18f3daf + 38fdef0 commit a6b3d55

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)