Jump to content

Terminal control/Dimensions: Difference between revisions

Added nim implementation.
(Scala solution added)
(Added nim implementation.)
Line 292:
fmt.Println(height, width)
}</lang>
 
=={{header|Nim}}==
 
<lang nim>import terminal
 
echo "Terminal width: " & $terminalWidth()
echo "Terminal height: " & $terminalHeight()
</lang>
 
=={{header|J}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.