From: Eero Saynatkari Date: 2006-09-28T05:58:27+09:00 Subject: Re: Curses --fwqqG+mf3f7vyBCB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2006.09.28 04:25, Michael W. Ryder wrote: > Eero Saynatkari wrote: > >On 2006.09.27 15:45, Michael W. Ryder wrote: > >>Eero Saynatkari wrote: > >>>On 2006.09.27 10:35, Michael W. Ryder wrote: > >>>>Overdorf, Sam wrote: > >>>>>Is anyone using the Curses class? > >>>>>Is anyone maintaining the Curses class? > >>>>> > >>>>>It looks like the Curses function move(y,x) is calling the wrong=20 > >>>>>library > >>>>>routine. > >>>>> > >>>>>It is calling the window move function and not the cursor positioning > >>>>>function. > >>>>> > >>>>>Thanks, > >>>>>Sam Overdorf > >>>>> > >>>>According to O'Reilly's Programming with Curses "move() is really a= =20 > >>>>#define macro for wmove() which takes a WINDOW* as its first argument= ."=20 > >>>>So it appears that the library is working correctly. > >>>#setpos x, y > >>What flavor of Curses is this from? > > > >This one: > > > > http://www.ruby-doc.org/stdlib/libdoc/curses/rdoc/classes/Curses.html >=20 >=20 > The source code shows that it uses Curses' move() function which is a=20 > macro to wmove() as I described above. No, move() moves the cursor (wmove() moves a specified window's cursor). Confusingly, Ruby's Curses bindings also have a .move which actually uses mvwin() which moves the window itself. --fwqqG+mf3f7vyBCB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFGuWA7Nh7RM4TrhIRAj1VAJ4vXqX3Oblbn6npfGgbRI9MKvH5dACeJJN8 qIKvl//VZqFQ/Ye4wpJJ+Jw= =760Q -----END PGP SIGNATURE----- --fwqqG+mf3f7vyBCB--