Display a string in a given X,Y position

Hi everybody!

Sorry if this question has already been treated, I didn’t succeed in
finding anything suitable for my needs.

I was trying to display the process of filling a board with given
patterns on a console.

#######################

X

X X

X

X X X

X

X

#######################
(Just a stupid example)

I could’nt find anything better than doing :

system(“clear”)
showBoard

each time I wanted to update the display, even though I only wanted to
change a single char on the board!
Is there a way to tell Ruby to display a given string on a given X,Y
position, without changing anything else?

That would be perfect.

Thanks a lot for your attention,
(and thanks too for that wonderful programming language),

Eric

Have you looked at curses?

http://ncurses-ruby.berlios.de/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs