Name

insstr

Synopsis

                           w.insstr([y,x,]str[,attr])

Inserts the characters in string str, with attribute attr, on w at the given coordinates ( x,y ), shifting the rest of line rightwards. Any characters that shift beyond the end of line are dropped. If you omit y,x, insstr uses w’s current cursor coordinates. If you omit attr, insstr uses w’s current default attribute. In any case, when done inserting the string, insstr sets w’s current cursor coordinates to the first character of the string it has inserted.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.