@@ -377,7 +377,8 @@ The module :mod:`curses` defines the following functions:
377377 is to be displayed.
378378
379379
380- .. function :: newwin([nlines, ncols,] begin_y, begin_x)
380+ .. function :: newwin(begin_y, begin_x)
381+ newwin(nlines, ncols, begin_y, begin_x)
381382
382383 Return a new window, whose left-upper corner is at ``(begin_y, begin_x) ``, and
383384 whose height/width is *nlines */*ncols *.
@@ -645,7 +646,8 @@ Window objects, as returned by :func:`initscr` and :func:`newwin` above, have
645646the following methods:
646647
647648
648- .. method :: window.addch([y, x,] ch[, attr])
649+ .. method :: window.addch(ch[, attr])
650+ window.addch(y, x, ch[, attr])
649651
650652 .. note ::
651653
@@ -659,13 +661,15 @@ the following methods:
659661 position and attributes are the current settings for the window object.
660662
661663
662- .. method :: window.addnstr([y, x,] str, n[, attr])
664+ .. method :: window.addnstr(str, n[, attr])
665+ window.addnstr(y, x, str, n[, attr])
663666
664667 Paint at most *n * characters of the string *str * at ``(y, x) `` with attributes
665668 *attr *, overwriting anything previously on the display.
666669
667670
668- .. method :: window.addstr([y, x,] str[, attr])
671+ .. method :: window.addstr(str[, attr])
672+ window.addstr(y, x, str[, attr])
669673
670674 Paint the string *str * at ``(y, x) `` with attributes *attr *, overwriting
671675 anything previously on the display.
@@ -752,7 +756,10 @@ the following methods:
752756 *bs * are *horch *. The default corner characters are always used by this function.
753757
754758
755- .. method :: window.chgat([y, x, ] [num,] attr)
759+ .. method :: window.chgat(attr)
760+ window.chgat(num, attr)
761+ window.chgat(y, x, attr)
762+ window.chgat(y, x, num, attr)
756763
757764 Set the attributes of *num * characters at the current cursor position, or at
758765 position ``(y, x) `` if supplied. If no value of *num * is given or *num * = -1,
@@ -801,7 +808,8 @@ the following methods:
801808 Delete the line under the cursor. All following lines are moved up by one line.
802809
803810
804- .. method :: window.derwin([nlines, ncols,] begin_y, begin_x)
811+ .. method :: window.derwin(begin_y, begin_x)
812+ window.derwin(nlines, ncols, begin_y, begin_x)
805813
806814 An abbreviation for "derive window", :meth: `derwin ` is the same as calling
807815 :meth: `subwin `, except that *begin_y * and *begin_x * are relative to the origin
@@ -876,7 +884,8 @@ the following methods:
876884 upper-left corner.
877885
878886
879- .. method :: window.hline([y, x,] ch, n)
887+ .. method :: window.hline(ch, n)
888+ window.hline(y, x, ch, n)
880889
881890 Display a horizontal line starting at ``(y, x) `` with length *n * consisting of
882891 the character *ch *.
@@ -910,7 +919,8 @@ the following methods:
910919 the character proper, and upper bits are the attributes.
911920
912921
913- .. method :: window.insch([y, x,] ch[, attr])
922+ .. method :: window.insch(ch[, attr])
923+ window.insch(y, x, ch[, attr])
914924
915925 Paint character *ch * at ``(y, x) `` with attributes *attr *, moving the line from
916926 position *x * right by one character.
@@ -931,7 +941,8 @@ the following methods:
931941 line.
932942
933943
934- .. method :: window.insnstr([y, x,] str, n [, attr])
944+ .. method :: window.insnstr(str, n[, attr])
945+ window.insnstr(y, x, str, n[, attr])
935946
936947 Insert a character string (as many characters as will fit on the line) before
937948 the character under the cursor, up to *n * characters. If *n * is zero or
@@ -940,15 +951,17 @@ the following methods:
940951 The cursor position does not change (after moving to *y *, *x *, if specified).
941952
942953
943- .. method :: window.insstr([y, x, ] str [, attr])
954+ .. method :: window.insstr(str[, attr])
955+ window.insstr(y, x, str[, attr])
944956
945957 Insert a character string (as many characters as will fit on the line) before
946958 the character under the cursor. All characters to the right of the cursor are
947959 shifted right, with the rightmost characters on the line being lost. The cursor
948960 position does not change (after moving to *y *, *x *, if specified).
949961
950962
951- .. method :: window.instr([y, x] [, n])
963+ .. method :: window.instr([n])
964+ window.instr(y, x[, n])
952965
953966 Return a string of characters, extracted from the window starting at the
954967 current cursor position, or at *y *, *x * if specified. Attributes are stripped
@@ -1123,13 +1136,15 @@ the following methods:
11231136 Turn on attribute *A_STANDOUT *.
11241137
11251138
1126- .. method :: window.subpad([nlines, ncols,] begin_y, begin_x)
1139+ .. method :: window.subpad(begin_y, begin_x)
1140+ window.subpad(nlines, ncols, begin_y, begin_x)
11271141
11281142 Return a sub-window, whose upper-left corner is at ``(begin_y, begin_x) ``, and
11291143 whose width/height is *ncols */*nlines *.
11301144
11311145
1132- .. method :: window.subwin([nlines, ncols,] begin_y, begin_x)
1146+ .. method :: window.subwin(begin_y, begin_x)
1147+ window.subwin(nlines, ncols, begin_y, begin_x)
11331148
11341149 Return a sub-window, whose upper-left corner is at ``(begin_y, begin_x) ``, and
11351150 whose width/height is *ncols */*nlines *.
@@ -1186,7 +1201,8 @@ the following methods:
11861201 :meth: `refresh `.
11871202
11881203
1189- .. method :: window.vline([y, x,] ch, n)
1204+ .. method :: window.vline(ch, n)
1205+ window.vline(y, x, ch, n)
11901206
11911207 Display a vertical line starting at ``(y, x) `` with length *n * consisting of the
11921208 character *ch *.
0 commit comments