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

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default Term::Cap -- Setting terminal type 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);


    Chubasco Guest

  2. Similar Questions and Discussions

    1. Term::ReadLine - Terminal does not support AddHistory
      Term::ReadLine - Terminal does not support AddHistory I only see this error on one of several identical machines. How do I fix this problem? ...
    2. Cannot connect to Terminal Server via Terminal Services Manager after upgrade to Windows Server 2003
      The following error is displayed in the Terminal Services Manager on our domain controller (DC-01) when trying to connect to Terminal Services on...
    3. windows 2003 terminal server problem
      I have a win 2003 terminal server (also a domain controller). It is running Citrix Metaframe XP. All is well except for when users connect and run...
    4. Windows 2003 terminal License Server
      I have added a 2003 server into my NT4 doamin, A temp pc was added to the domain, and then made PDC this was used to be upgraded to 2003 AD, apart...
    5. Terminal server VS Windows XP Pro client
      Jack, What TS client are you using? There are several known issues regarding kbd in XP (Q302568), but none seem to fit your description. Be aware...
  3. #2

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

    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);



    Chubasco Guest

  4. #3

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


    "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.

    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


    Sisyphus Guest

  5. #4

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

    [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> :
    >
    > "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
    Ilya Zakharevich Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139