RosettaCodeData/Task/Terminal-control-Dimensions/Kotlin/terminal-control-dimensions.kotlin
2023-07-01 13:44:08 -04:00

13 lines
358 B
Text

// version 1.1.2
/*
I needed to execute the terminal command: 'export COLUMNS LINES'
before running this program for it to work (returned 'null' sizes otherwise).
*/
fun main(args: Array<String>) {
val lines = System.getenv("LINES")
val columns = System.getenv("COLUMNS")
println("Lines = $lines")
println("Columns = $columns")
}