Skip to content

Commit

Permalink
Merge pull request #189 from JuliaGizmos/teh/showperf
Browse files Browse the repository at this point in the history
Support IOContext flags in show
  • Loading branch information
timholy committed Dec 13, 2018
2 parents 39b0fb9 + c3ca28b commit 781513e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core.jl
Expand Up @@ -142,7 +142,9 @@ end

function Base.show(io::IO, n::Signal)
active_str = isactive(n) ? "(active)" : ""
write(io, "$(n.id): \"$(n.name)\" = $(something(n.value, "nothing")) $(eltype(n)) $active_str")
print(io, n.id, ": \"", n.name, "\" = ")
print(io, something(n.value, "nothing"))
print(io, ' ', eltype(n), ' ', active_str)
end

value(n) = n
Expand Down

0 comments on commit 781513e

Please sign in to comment.