niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » Perl » modules
Term::Cap -- Setting terminal type under Windows XP
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Ilya Zakharevich
*nix forums Guru Wannabe


Joined: 25 Feb 2005
Posts: 219

PostPosted: Thu Jun 01, 2006 11:10 am    Post subject: Re: Term::Cap -- Setting terminal type under Windows XP Reply with quote

[A complimentary Cc of this posting was sent to
Sisyphus
<sisyphus1@nomail.afraid.org>], who wrote in article <447eac65$0$22807$afc38c87@news.optusnet.com.au>:
Quote:

"Chubasco" <eastonbeymer@cox.net> wrote in message
news:P7Neg.3677$_m5.1414@fed1read09...
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
Back to top
Sisyphus
*nix forums Guru


Joined: 04 Mar 2005
Posts: 503

PostPosted: Thu Jun 01, 2006 8:55 am    Post subject: Re: Term::Cap -- Setting terminal type under Windows XP Reply with quote

"Chubasco" <eastonbeymer@cox.net> wrote in message
news:P7Neg.3677$_m5.1414@fed1read09...
Quote:
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
Back to top
Chubasco
*nix forums beginner


Joined: 14 May 2006
Posts: 5

PostPosted: Tue May 30, 2006 1:22 am    Post subject: Term::Cap -- Setting terminal type under Windows XP Reply with quote

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);
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 5:01 am | All times are GMT
navigation Forum index » Programming » Perl » modules
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts problem with windows installer Christian Rengstl PostgreSQL 0 Fri Jul 21, 2006 10:55 am
No new posts does squid 2.6 support setting cache_peer port in redirec... Victor Tsang Squid 0 Fri Jul 21, 2006 8:16 am
No new posts Problem with Win32-SerialPort over bluetooth @ windows + ... ctloh Perl 0 Fri Jul 21, 2006 8:08 am
No new posts help setting up exim -- mail not sent to domain ithou.org Albert Wong Exim 0 Fri Jul 21, 2006 7:00 am
No new posts Capturing user login Information of windows sachin PHP 3 Fri Jul 21, 2006 5:44 am

Debt Help | Loans | Secured Loans | Meeting Rooms | Credit Cards
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1741s ][ Queries: 20 (0.0962s) ][ GZIP on - Debug on ]