[erlang-questions] Getting the number of columns of a terminal

Juan Jose Comellas juanjo@REDACTED
Tue Jan 17 13:54:54 CET 2012


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.

Thanks,

Juanjo



More information about the erlang-questions mailing list