From: Todd A. Jacobs on
I'm exploring the ncurses library for Ruby 1.8, and am unclear how to
access the alternative character set (e.g. ACS_LTEE) from within Ruby.
For example:

require 'ncurses'
Ncurses.initscr
Ncurses.addstr Ncurses.ACS_LTEE
Ncurses.refresh
Ncurses.getch
Ncurses.endwin

doesn't print the left tee. How can I access the alternative character
set properly?

--
"Oh, look: rocks!"
-- Doctor Who, "Destiny of the Daleks"


From: R. Kumar on
Todd A. Jacobs wrote:
> I'm exploring the ncurses library for Ruby 1.8, and am unclear how to
> access the alternative character set (e.g. ACS_LTEE) from within Ruby.
> For example:
>
> require 'ncurses'
> Ncurses.initscr
> Ncurses.addstr Ncurses.ACS_LTEE


window.mvwaddch(0, 0, Ncurses::ACS_LTEE)

Works for me.
--
Posted via http://www.ruby-forum.com/.