Oren Maurer
Oren Maurer

Reputation: 299

cpan error: Unable to get Terminal Size. The Win32 GetConsoleScreenBufferInfo call didn't work

ActiveState Perl - 5.26 on Windows 10 - 64 bit.

When I am trying to launch cpan from CMD - I see the following error:

C:\Users\orenm>cpan
Unable to get Terminal Size. The Win32 GetConsoleScreenBufferInfo call didn't work. The COLUMNS and LINES environment variables didn't work. at C:\Perl64\lib/Term/ReadLine/readline.pm line 410. 

Why does it happen? What shall I do with it?

Upvotes: 8

Views: 4380

Answers (2)

Marco Schmalz
Marco Schmalz

Reputation: 11

In PowerShell the equivalent syntax is

$env:TERM="dumb"

Upvotes: 1

Bill Smith
Bill Smith

Reputation: 81

It's trying to figure out your terminals size. You can use a 'dumb' terminal.

set TERM=dumb

will eliminate the warning.

Upvotes: 8

Related Questions