Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

Unable to get Terminal Size / Environment variable COLUMNS / LINES not set #151

Open
JoedowJoedow opened this issue Jun 7, 2020 · 3 comments

Comments

@JoedowJoedow
Copy link

First, big thank to the work of Morten.

Second, I am running into following issue, the Debug Console shows following warning:

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

For my point an dedicated setting of the environment variables worked (launch.json):
"env": { }, => replaced by => "env": { "COLUMNS":80, "LINES":80 },

Can this be setup when vscode-perl-debug is installed?

Kind regards

@raix
Copy link
Owner

raix commented Jun 8, 2020

Thanks, Interesting, we could perhaps set some default size - what terminal are you using? Cmd/ps/wt?

@JoedowJoedow
Copy link
Author

JoedowJoedow commented Jun 8, 2020 via email

@Nowaker
Copy link

Nowaker commented Jun 20, 2020

export TERM=dumb before executing perl -d will silence this problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants