Skip to content

Commit

Permalink
Support IOContext flags in show
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Dec 12, 2018
1 parent 39b0fb9 commit c3ca28b
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 c3ca28b

Please sign in to comment.