From: "Overdorf, Sam" Date: 2006-09-16T09:02:15+09:00 Subject: Curses problem ------_=_NextPart_001_01C6D923.18374664 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable I have been trying to use the "Curses" library and am having the following problem. I am using the O'reilly book "Programming with curses" as a tutorial. =20 I try to position the cursor on the screen and it doesn't seem to work correctly. I tried the same thing in "c" and everything seems to work ok so I know I have the syntax correct. =20 Here is a piece of the code: =20 screen =3D Curses.init_screen() =20 y =3D x =3D 0 =20 while x <=3D 24 move(y,x) addstr("yx is here") x +=3D 1 y +=3D 1 end =20 screen.refresh() =20 screen.getch() =20 screen.close_screen() =20 =20 I was looking at the "curses.c" file and it looks like the move function is calling the wrong thing. According to my book the "mvwin" is for moving windows on the screen and not for cursor addressing. =20 Thanks for the help, Sam Overdorf =20 /* def move(y, x) */ static VALUE window_move(obj, y, x) VALUE obj; VALUE y; VALUE x; { struct windata *winp; =20 GetWINDOW(obj, winp); mvwin(winp->window, NUM2INT(y), NUM2INT(x)); =20 return Qnil; } ------_=_NextPart_001_01C6D923.18374664--