How to Refer to the Size of the Output Window in Julia
Code
The size of the terminal where Julia is running can be obtained via the displaysize function 1.
displaysize(stdout)
Example

hline() = println("─" ^ displaysize(stdout)[2])
For example, if you define a function hline that prints a horizontal line as above and run it while resizing the window, you can see that the function prints the horizontal line to exactly match the terminal’s width.
