Click here to get back home

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

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Curses - how can I print the VT100 symbols such as ACS_DIAMOND and ACS_BULLET Grehom 03-17-2008
Posted by Grehom on March 17, 2008, 6:30 am
Please log in for more thread options
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

Similar ThreadsPosted
Exporting Symbols via Exporter March 15, 2005, 3:08 pm
Addressing the cursor of a VT100 style terminal emulator using perl December 28, 2005, 10:06 pm
Perl5.8.6 AIX 4.3.3 VAC4.4.0.3 - Undefined Symbols April 22, 2005, 11:13 am
FAQ 3.13 How can I use curses with Perl? February 27, 2005, 12:03 am
FAQ 3.13 How can I use curses with Perl? May 15, 2005, 5:03 pm
FAQ 3.13 How can I use curses with Perl? July 31, 2005, 4:03 am
Problem with Curses August 16, 2005, 2:00 pm
FAQ 3.13 How can I use curses with Perl? May 16, 2006, 9:03 pm
FAQ 3.13 How can I use curses with Perl? June 10, 2006, 9:03 pm
FAQ 3.13 How can I use curses with Perl? August 5, 2006, 9:03 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap