Terminal control/Dimensions: Difference between revisions

Scala solution added
(→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details)
(Scala solution added)
Line 540:
end</lang>
 
=={{header|Scala}}==
{{Works with|Ubuntu|14.04}}
<lang Scala> /*
First execute the terminal command: 'export COLUMNS LINES'
before running this program for it to work (returned 'null' sizes otherwise).
*/
 
val (lines, columns) = (System.getenv("LINES"), System.getenv("COLUMNS"))
println(s"Lines = $lines, Columns = $columns")</lang>
=={{header|Seed7}}==
The functions [http://seed7.sourceforge.net/libraries/console.htm#height%28ref_console_file%29 height] and
Anonymous user