"Unable to get Terminal size" error in a perl script

Viewed 466

I installed Visual Studio Code (Vrs 1.4.0) in my Windows 10 device.

I have a perl script that starts with this lines:

#!/usr/bin/perl
# OK, recuerda que comilla simple no interpreta los caracteres reservados.
# calcula apariciones de numeros para sorteos segun solicitud
$txt1 = "De que sorteo quieres calcular corazonada?\n"; 
...

When I try to run it, I receive this error:

Unable to get Terminal Size. The Win32 GetConsoleScreenBufferInfo call didn't work. The COLUMNS and LINES environment variables didn't work. at C:/Strawberry/perl/vendor/lib/Term/ReadLine/readline.pm line 410.

There are some other warning messages, but this is the error that stops the script.

How do I need to fix this?

1 Answers
Related