in reply to Re^4: Debugging a program
in thread Debugging a program
These lines in sub afterinit take care of it: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 +.
Powershell is used here to get the console property WindowSize. Then the environment variables COLUMNS and LINES are locally set and the readline.pm module is happy.my ($cols, $lines) = split ' ', (grep { m{^\s*\d+\s+\d+\s}xms } `p +owershell -command "&{\$H=get-host;\$H.ui.rawui.WindowSize;}"`)[0]; $ENV{'COLUMNS'} = $cols; $ENV{'LINES'} = $lines; print "COLUMNS and LINES are set ($cols,$lines).\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Debugging a program
by jdporter (Paladin) on Feb 20, 2019 at 17:24 UTC | |
Re^6: Debugging a program with Tk
by hexcoder (Curate) on Sep 19, 2019 at 09:08 UTC |