Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Classe « window » Python 3.11.3

Méthode curses.window.insnstr

Signature de la méthode insnstr

Description

help(window.insnstr)

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).