PyDocs

Nav

Command-line interface libraries

window.insnstr

curses

method of windownot Androidnot iOSnot WASI
  • window.insnstr(str, n[, attr])
  • window.insnstr(y, x, str, n[, attr])
insnstr([y, x,] str, n, [attr])
Insert at most n characters of the string.

  y
    Y-coordinate.
  x
    X-coordinate.
  str
    String to insert.
  n
    Maximal number of characters.
  attr
    Attributes for characters.

Insert a character string (as many characters as will fit on the
line) before the character under the cursor, up to n characters.  If
n is zero or negative, the entire string is inserted.  All
characters to the right of the cursor are shifted right, with the
rightmost characters on the line being lost.  The cursor position
does not change (after moving to y, x, if specified).
0 Examples
No examples for curses/window.insnstr.
See Also
No see-alsos for curses/window.insnstr
0 Notes
No notes for window.insnstr