[erlang-questions] Getting the number of columns of a terminal
Tue Jan 17 15:27:43 CET 2012
# Juan Jose Comellas 2012-01-17:
> Does anybody know if there's any way of getting the number of columns
> in a terminal in a portable way in Erlang (i.e. not using curses or
> anything else that's not available on other platforms)? I need to wrap
> some lines that I'm showing on a terminal and I'd rather use the real
> terminal's width instead hardcoding it to 80 characters or so.
io:columns/N should do it?
More information about the erlang-questions