Terminal control/Dimensions: Difference between revisions
Content added Content deleted
Drkameleon (talk | contribs) (Added Arturo implementation) |
(Changed the program to store the wisth and height in variables as required by the task.) |
||
Line 507: | Line 507: | ||
<lang nim>import terminal |
<lang nim>import terminal |
||
let (width, height) = terminalSize() |
|||
⚫ | |||
echo "Terminal width: ", width |
|||
</lang> |
|||
⚫ | |||
{{out}} |
|||
<pre>Terminal width: 80 |
|||
Terminal height: 24</pre> |
|||
=={{header|OCaml}}== |
=={{header|OCaml}}== |