BUG: Auto-detect terminal size on max_col/max_row==0
API: accept -1 for layout