File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 146146@eval clear_line (t:: UnixTerminal ) = write (t. out_stream, $ " \r $(CSI) 0K" )
147147beep (t:: UnixTerminal ) = write (t. err_stream," \x 7" )
148148
149- Base. displaysize (t:: UnixTerminal ) = displaysize (t. out_stream)
149+ Base. displaysize (t:: UnixTerminal ) = displaysize (t. out_stream):: Tuple{Int,Int}
150150
151151hascolor (t:: TTYTerminal ) = get (t. out_stream, :color , false ):: Bool
152152
Original file line number Diff line number Diff line change @@ -1953,6 +1953,10 @@ end
19531953 end
19541954end
19551955
1956+ @testset " `displaysize` return type inference" begin
1957+ @test Tuple{Int, Int} === Base. infer_return_type (displaysize, Tuple{REPL. Terminals. UnixTerminal})
1958+ end
1959+
19561960@testset " Dummy Pkg prompt" begin
19571961 # do this in an empty depot to test default for new users
19581962 withenv (" JULIA_DEPOT_PATH" => mktempdir () * (Sys. iswindows () ? " ;" : " :" ), " JULIA_LOAD_PATH" => nothing ) do
You can’t perform that action at this time.
0 commit comments