Searched refs:termsize (Results 1 – 1 of 1) sorted by relevance
11313 PyObject *termsize; in get_terminal_size() local11366 termsize = PyStructSequence_New(&TerminalSizeType); in get_terminal_size()11367 if (termsize == NULL) in get_terminal_size()11369 PyStructSequence_SET_ITEM(termsize, 0, PyLong_FromLong(columns)); in get_terminal_size()11370 PyStructSequence_SET_ITEM(termsize, 1, PyLong_FromLong(lines)); in get_terminal_size()11372 Py_DECREF(termsize); in get_terminal_size()11375 return termsize; in get_terminal_size()