views:

316

answers:

3

It is possible, generally, by means of Ruby library to output a symbol at specific location on a common Windows console screen, which seems to be 80x25 ?

The problem came up with the need to draw a specific 'tree' structure like this, for example:

│
├──x──y──z
│        │
│        ├──a──b──c
│        │
│        └──e──f──g
│
└──u──v──o
A: 

You could use a wrapper for Curses, like this one.

kgiannakakis
A: 

The Win32Console project should do what you want, and much more. Also, your question reminds me slightly of Ruby Quiz #14 (LCD Numbers).

Alex Reisner
I'm afraid it's outdated :(
gmile
+1  A: 

If you're just interested generating trees in the console, this post shows you how to do it with hirb.

This is great, man! Thanks a LOT!
gmile