From: botp Date: 2011-02-22T13:22:25+09:00 Subject: Re: Console output formatting On Tue, Feb 22, 2011 at 6:53 AM, ra don wrote: > Hello all,  I got two quick questions. First can anyone tell me how to > format the output of a hash in pairs in a table format like > > a=1 b=2 c=3 > d=4 e=5 f=6 ruby is an enjoyable language to work or play with. eg, try each_slice, h #=> {:a=>1, :b=>2, :c=>3, :d=>4, :e=>5, :f=>6} h.each_slice(3) do |x,y,z| p x+y+z end [:a, 1, :b, 2, :c, 3] [:d, 4, :e, 5, :f, 6] > Second is there any tutorials or gems/librarys that will deal with > console formating on a screen scale rather than strings.. search about curses. read more ruby docs/manuals and try the tutorials.. best regards -botp