instr([y, x,] n=2047)
Return the text of the window as a bytes object.
y
Y-coordinate.
x
X-coordinate.
n
Maximal number of bytes.
Read from the current cursor position, or from y, x if specified, to
the end of the line, and return the text in the encoding of the
current locale, with attributes and color pairs stripped. At most n
bytes are read.