ncurses alternative character set?

Discussion in 'Ruby' started by Todd A. Jacobs, Mar 13, 2010.

  1. 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"
    Todd A. Jacobs, Mar 13, 2010
    #1
    1. Advertising

  2. Todd A. Jacobs

    R. Kumar Guest

    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/.
    R. Kumar, Mar 17, 2010
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paul Woodward

    Linux Console Applications / NCurses

    Paul Woodward, Jul 22, 2003, in forum: C++
    Replies:
    0
    Views:
    416
    Paul Woodward
    Jul 22, 2003
  2. Paul Woodward

    Linux Console Applications / NCurses

    Paul Woodward, Jul 22, 2003, in forum: C++
    Replies:
    0
    Views:
    492
    Paul Woodward
    Jul 22, 2003
  3. Paul Woodward

    Console Application / NCurses

    Paul Woodward, Jul 22, 2003, in forum: C++
    Replies:
    0
    Views:
    382
    Paul Woodward
    Jul 22, 2003
  4. Nick R

    ncurses help

    Nick R, Dec 7, 2003, in forum: C++
    Replies:
    2
    Views:
    571
    Kelsey Bjarnason
    Dec 8, 2003
  5. Kenneth McDonald
    Replies:
    1
    Views:
    138
    Nit Khair
    Sep 27, 2008
Loading...

Share This Page