Ncurses alternative character set?

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?

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.

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