Last active
May 6, 2019 12:04
-
-
Save blackode/2904f29be2a9b514ff90c761d481c325 to your computer and use it in GitHub Desktop.
Terminal height and width ... elixir
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule TerminalWidthHeight do | |
def term_dimensionns do | |
{:ok,width} = :io.columns | |
{:ok,height} = :io.rows | |
IO.inspect {width,height} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment