@@ -165,7 +165,7 @@ function display_error(io::IO, er, bt)
165165 showerror (IOContext (io, :limit => true ), er, bt)
166166 println (io)
167167end
168- display_error (er, bt) = display_error (stderr , er, bt)
168+ display_error (er, bt) = display_error (STDERR , er, bt)
169169display_error (er) = display_error (er, [])
170170
171171function eval_user_input (@nospecialize (ast), show_value:: Bool )
@@ -189,7 +189,7 @@ function eval_user_input(@nospecialize(ast), show_value::Bool)
189189 try
190190 invokelatest (display, value)
191191 catch err
192- println (stderr , " Evaluation succeeded, but an error occurred while showing value of type " , typeof (value), " :" )
192+ println (STDERR , " Evaluation succeeded, but an error occurred while showing value of type " , typeof (value), " :" )
193193 rethrow (err)
194194 end
195195 println ()
@@ -198,17 +198,17 @@ function eval_user_input(@nospecialize(ast), show_value::Bool)
198198 break
199199 catch err
200200 if errcount > 0
201- println (stderr , " SYSTEM: show(lasterr) caused an error" )
201+ println (STDERR , " SYSTEM: show(lasterr) caused an error" )
202202 end
203203 errcount, lasterr = errcount+ 1 , err
204204 if errcount > 2
205- println (stderr , " WARNING: it is likely that something important is broken, and Julia will not be able to continue normally" )
205+ println (STDERR , " WARNING: it is likely that something important is broken, and Julia will not be able to continue normally" )
206206 break
207207 end
208208 bt = catch_backtrace ()
209209 end
210210 end
211- isa (stdin , TTY) && println ()
211+ isa (STDIN , TTY) && println ()
212212 nothing
213213end
214214
@@ -328,7 +328,7 @@ function exec_options(opts)
328328 end
329329 repl |= is_interactive
330330 if repl
331- interactiveinput = isa (stdin , TTY)
331+ interactiveinput = isa (STDIN , TTY)
332332 if interactiveinput
333333 global is_interactive = true
334334 banner = (opts. banner != 0 ) # --banner!=no
@@ -369,8 +369,8 @@ function __atreplinit(repl)
369369 try
370370 f (repl)
371371 catch err
372- showerror (stderr , err)
373- println (stderr )
372+ showerror (STDERR , err)
373+ println (STDERR )
374374 end
375375 end
376376end
@@ -397,7 +397,7 @@ function run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_fil
397397 if interactive && isassigned (REPL_MODULE_REF)
398398 invokelatest (REPL_MODULE_REF[]) do REPL
399399 term_env = get (ENV , " TERM" , @static Sys. iswindows () ? " " : " dumb" )
400- term = REPL. Terminals. TTYTerminal (term_env, stdin , stdout , stderr )
400+ term = REPL. Terminals. TTYTerminal (term_env, STDIN, STDOUT, STDERR )
401401 color_set || (global have_color = REPL. Terminals. hascolor (term))
402402 banner && REPL. banner (term, term)
403403 if term. term_type == " dumb"
@@ -419,7 +419,7 @@ function run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_fil
419419 @warn " REPL provider not available: using basic fallback"
420420 end
421421 banner && Base. banner ()
422- let input = stdin
422+ let input = STDIN
423423 if isa (input, File) || isa (input, IOStream)
424424 # for files, we can slurp in the whole thing at once
425425 ex = parse_input_line (read (input, String))
@@ -437,7 +437,7 @@ function run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_fil
437437 while isopen (input) || ! eof (input)
438438 if interactive
439439 print (" julia> " )
440- flush (stdout )
440+ flush (STDOUT )
441441 end
442442 eval_user_input (parse_input_line (input), true )
443443 end
0 commit comments