Terminal control/Dimensions: Difference between revisions
Content added Content deleted
(Scala solution added) |
(Added nim implementation.) |
||
Line 292: | Line 292: | ||
fmt.Println(height, width) |
fmt.Println(height, width) |
||
}</lang> |
}</lang> |
||
=={{header|Nim}}== |
|||
<lang nim>import terminal |
|||
echo "Terminal width: " & $terminalWidth() |
|||
echo "Terminal height: " & $terminalHeight() |
|||
</lang> |
|||
=={{header|J}}== |
=={{header|J}}== |