Curses - how can I print the VT100 symbols such as ACS_DIAMOND andACS_BULLET

Discussion in 'Perl Misc' started by Grehom, Mar 17, 2008.

  1. Grehom

    Grehom Guest

    I am writing a application using the Curses module, and it's all
    working nicely but I would like to be able to print some of the VT100
    symbols such as ACS_DIAMOND and ACS_BULLET (as defined in /usr/
    include/curses.h) to the screen, can anyone help. Example of the code
    I have tried is:

    #!/usr/bin/perl
    use strict;
    use warnings;
    use Readonly;

    use Curses;

    Readonly my $NULL => q{};

    initscr();
    addstr(2, 2,"string ");
    addstr(2, 9, ACS_DIAMOND);

    refresh();
    getch();

    endwin();

    But all it does is print a number 'string 4194400', thanks
     
    Grehom, Mar 17, 2008
    #1
    1. Advertisements

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. Ayron
    Replies:
    5
    Views:
    3,576
    Johannes Koch
    Nov 12, 2005
  2. Free Doc

    VT100

    Free Doc, Apr 30, 2004, in forum: C Programming
    Replies:
    1
    Views:
    641
    Martin Dickopp
    Apr 30, 2004
  3. Dominique Bouré

    Python and VT100

    Dominique Bouré, Mar 5, 2005, in forum: Python
    Replies:
    2
    Views:
    565
    Christos TZOTZIOY Georgiou
    Mar 6, 2005
  4. Jean-Paul Calderone
    Replies:
    2
    Views:
    596
    Joel Hedlund
    Feb 9, 2006
  5. Daniele C.

    Curses for win32 with VT100/ANSI support

    Daniele C., May 20, 2006, in forum: C Programming
    Replies:
    48
    Views:
    1,755
    Dave Thompson
    Jun 8, 2006
  6. vinay
    Replies:
    12
    Views:
    2,338
    Athel Cornish-Bowden
    Aug 19, 2009
  7. Wolfgang Rohdewald

    Re: VT100 in Python

    Wolfgang Rohdewald, Sep 14, 2009, in forum: Python
    Replies:
    2
    Views:
    1,128
    Nobody
    Sep 17, 2009
  8. Jeff Silverman
    Replies:
    2
    Views:
    403
    Thomas Dickey
    Dec 29, 2005
Loading...