ruby curses, bug or my mistake?

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
 
T

Tobias Peters

Scott said:
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.

Curses.refresh

Tobias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top