Skip to content

Commit

Permalink
rows and cols to display should not depend on terminal where IJulia k…
Browse files Browse the repository at this point in the history
…ernel is started; pick a sensible default (see JuliaLang/julia#4117)
  • Loading branch information
stevengj committed Aug 21, 2013
1 parent f6be30b commit 2989cc1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/kernel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ using IJulia

ccall(:jl_install_sigint_handler, Void, ())

# the size of truncated output to show should not depend on the terminal
# where the kernel is launched, since the display is elsewhere
ENV["LINES"] = 30
ENV["COLUMNS"] = 80

println(IJulia.orig_STDOUT, "Starting kernel event loops.")
IJulia.watch_stdio()
for sock in (IJulia.requests, IJulia.control)
Expand Down

0 comments on commit 2989cc1

Please sign in to comment.