S
Scott Rubin
Ok, I've got a problem in ruby curses. I'm not sure if this is a bug or
if it is me doing something wrong. It's probably me doing something
wrong, but just checking.
I tried something like this.
...
win.setpos( 2, 2 )
win.addstr( txt )
win.setpos( 3, 2 )
val = wind.getstr
wind.setpos( 4, 2 )
wind.addstr( val )
...
The first 4 lines of code work fine. The text shows up on the screen
just fine. The last two lines of code do not work. After I enter the
string I expect it to appear on the screen beginning at line 4 collumn 2
after I press enter. But it doesn't. The cursor just moves to the next
line and does nothing. This seems really simple I don't know how I'm
messing up. Someone please point out my obvious mistake.
-Scott
if it is me doing something wrong. It's probably me doing something
wrong, but just checking.
I tried something like this.
...
win.setpos( 2, 2 )
win.addstr( txt )
win.setpos( 3, 2 )
val = wind.getstr
wind.setpos( 4, 2 )
wind.addstr( val )
...
The first 4 lines of code work fine. The text shows up on the screen
just fine. The last two lines of code do not work. After I enter the
string I expect it to appear on the screen beginning at line 4 collumn 2
after I press enter. But it doesn't. The cursor just moves to the next
line and does nothing. This seems really simple I don't know how I'm
messing up. Someone please point out my obvious mistake.
-Scott