We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e0a82b commit 9154cbaCopy full SHA for 9154cba
lib/Data/Dump/Tree.rakumod
@@ -249,7 +249,9 @@ unless @.kb_colors.elems
249
}
250
@!kb_colors_cycle = |@.kb_colors xx * ;
251
252
-my $width= %+((qx[stty size] || '0 80') ~~ /\d+ \s+ (\d+)/)[0] ;
+my $stty-size = '0 80';
253
+$stty-size = qx[stty size] unless $*DISTRO.name eq 'mswin32';
254
+my $width = %+(($stty-size) ~~ /\d+ \s+ (\d+)/)[0] ;
255
256
$.width //= $width ;
257
$.width = $width if @.glyph_filters ; # $.width can be set to Inf, we can't pad that far.
0 commit comments