Chat server and client using ncurses in ruby