ncurses alternative character set?

T

Todd A. Jacobs

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?
 
R

R. Kumar

Todd said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top