rthornton128 / goncurses

NCurses Library for Go
Other
383 stars 51 forks source link

Change param names and update documentation #61

Closed pderichs closed 3 years ago

pderichs commented 3 years ago

Hi,

in my tests the parameters of the Refresh Pad call must be different from the documentation:

When I change the parameters in the call to Refresh in examples/pad.go to

    pad.Refresh(0, 5, 5, 10, 1, 25)

(if I got the documentation right it would just show one row in height from the upper left coordinates with these parameters) no content is displayed.

I assume the last two parameters should be the coordinates of the lower right corner of the pad on the screen as documented here: https://de.wikibooks.org/wiki/Ncurses:_Pads (sorry for the german content).

I have updated the documentation and parameter names to reflect that.

Please let me know what you think :slightly_smiling_face: