PyDocs

Nav

Command-line interface libraries

window.instr

curses

method of windownot Androidnot iOSnot WASI
  • window.instr([n])
  • window.instr(y, x[, n])
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.
Changed in 3.14
  • 3.14: The maximum value for n was increased from 1023 to 2047.
0 Examples
No examples for curses/window.instr.
See Also
No see-alsos for curses/window.instr
0 Notes
No notes for window.instr