briandfoy / net-ssh-perl

Development on the Net::SSH::Perl module to support latest ciphers, key exchange mechanisms, etc.
Other
4 stars 1 forks source link

Can't support TERM=xterm-color #29

Open briandfoy opened 1 year ago

briandfoy commented 1 year ago

This ticket was imported from rt.cpan.org 61388

Net::SSH::Perl can't support TERM=xterm-color now.

file Net/SSH/Perl/SSH2.pm line 221: 221 my($term) = $ENV{TERM} =~ /(\w+)/;

and file Net/SSH/Perl/SSH1.pm line 222:

222 my($term) = $ENV{TERM} =~ /(\w+)/;

had better modify above lines to:

        my ($term) = $ENV{TERM} =~ /(\S+)/;

or

        my $term = $ENV{TERM};
briandfoy commented 1 year ago

from schwigon@cpan.org


Net::SSH::Perl can't support TERM=xterm-color now.

file Net/SSH/Perl/SSH2.pm line 221: 221 my($term) = $ENV{TERM} =~ /(\w+)/;

and file Net/SSH/Perl/SSH1.pm line 222:

222 my($term) = $ENV{TERM} =~ /(\w+)/;

had better modify above lines to:

        my ($term) = $ENV{TERM} =~ /(\S+)/;

or

        my $term = $ENV{TERM};

I don't know how to reproduce the problem but the fix looks easy. I added it to

https://github.com/renormalist/Net-SSH-Perl

for another release.

Kind regards, Steffen