Click here to get back home

Term::Cap -- Setting terminal type under Windows XP

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    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
Term::Cap -- Setting terminal type under Windows XP Chubasco 05-29-2006
Get Chitika Premium
Posted by Chubasco on May 29, 2006, 9:22 pm
Please log in for more thread options


I am submitting this message again. Doesn't anyone out there know about
using termcap under Windows XP?

I am trying to get Term::Cap to run under Windows XP. When running the code
snippet below from the Term::Cap documentation, I get the message "TERM not
set at termcapxx.pl line 2". What is the procedure for setting the TERM
terminal type on Windows XP?


require Term::Cap;
$terminal = Tgetent Term::Cap { TERM => undef, OSPEED => $ospeed };
$terminal->Trequire(qw/ce ku kd/);
$terminal->Tgoto('cm', $col, $row, $FH);
$terminal->Tputs('dl', $count, $FH);
$terminal->Tpad($string, $count, $FH);




Posted by Sisyphus on June 1, 2006, 4:55 am
Please log in for more thread options



> I am submitting this message again. Doesn't anyone out there know about
> using termcap under Windows XP?
>

It seems that the Cygwin developers know something about this as Term::Cap
works fine in Cygwin's shell on Windows 2000 (and presumably XP as well). By
"works fine" I mean that all tests in the Term::Cap-1.09 test suite pass
under Cygwin (whereas on native windows they are all simply skipped).

The Term::Cap-1.09 documentation says that the module will "use capabilities
from a terminal capability (termcap) database" - and I guess that the
"terminal capability database" is missing in the native windows environment.
The problem may go well beyond that - faik it may be that Term::Cap *cannot*
be applied to the cmd.exe shell.

Does Win32::Console (which is part of the libwin distro) provide you with
what you need ? (I know so little about these matters that I cannot even
confirm that's a sensible question :-)

Hope there's something there that helps.

Cheers,
Rob



Posted by Ilya Zakharevich on June 1, 2006, 7:10 am
Please log in for more thread options


[A complimentary Cc of this posting was sent to
Sisyphus
>
> > I am submitting this message again. Doesn't anyone out there know about
> > using termcap under Windows XP?
> >
>
> It seems that the Cygwin developers know something about this as Term::Cap
> works fine in Cygwin's shell on Windows 2000 (and presumably XP as well). By
> "works fine" I mean that all tests in the Term::Cap-1.09 test suite pass
> under Cygwin (whereas on native windows they are all simply skipped).
>
> The Term::Cap-1.09 documentation says that the module will "use capabilities
> from a terminal capability (termcap) database" - and I guess that the
> "terminal capability database" is missing in the native windows environment.
> The problem may go well beyond that - faik it may be that Term::Cap *cannot*
> be applied to the cmd.exe shell.

I would be very surprised if TERM=ansi with "standard" termcap file
won't work. Put it somewhere, and set TERMCAP appropriately to check.

If this works, this implies that on Win32 etc, Term::Cap should
fallback to this value if it can't find the database or TERM.

Hope this helps,
Ilya

Similar ThreadsPosted
Term::Cap -- Setting terminal type under Windows XP May 24, 2006, 1:46 pm
Term::ReadLine - Terminal does not support AddHistory June 14, 2005, 12:54 pm
Setting up mod_perl2 on apache2 , Windows XP Box September 2, 2005, 12:37 pm
Net::SFTP - setting binary mode on Windows January 17, 2007, 5:55 am
Term::Clui in modlist/User_Interfaces/Term ? October 5, 2007, 1:52 am
Setting file permissions in ExtUtils::MakeMaker January 25, 2005, 5:15 am
problem with using the forks module within a daemon setting June 19, 2006, 3:13 pm
CPAN module page setting questions October 30, 2008, 12:06 am
Manipulating ANY type of email January 3, 2006, 5:03 pm
Ip address Data Type DBI May 10, 2006, 4:38 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap