Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Curses - how can I print the VT100 symbols such as ACS_DIAMOND andACS_BULLET

Reply
Thread Tools

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

 
 
Grehom
Guest
Posts: n/a
 
      03-17-2008
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Curses for win32 with VT100/ANSI support Daniele C. C Programming 48 06-08-2006 02:11 AM
Re: Replacing curses (Was: Re: Problem with curses and UTF-8) Jean-Paul Calderone Python 2 02-09-2006 08:29 AM
Python and VT100 Dominique Bouré Python 2 03-06-2005 12:02 AM
VT100 Free Doc C Programming 1 04-30-2004 11:28 AM



Advertisments