void newt_get_screen_size    ( int &$cols   , int &$rows   )

newt_get_screen_sizeFills in the passed references with the current size of the terminal

cols

Number of columns in the terminal

rows

Number of rows in the terminal