Sorry to nag - but I run the following code:
use strict; use warnings; use Win32::Console; my $OUT = Win32::Console->new(STD_OUTPUT_HANDLE); my $IN = Win32::Console->new(STD_INPUT_HANDLE); $IN->Mode(ENABLE_MOUSE_INPUT|ENABLE_WINDOW_INPUT); $OUT->Size(180, 200); my ($maxx, $maxy) = $OUT->MaxWindow; $OUT->Cls; $OUT->Cursor(-1, -1, -1, 0); $OUT->FillAttr($BG_YELLOW|$FG_BLUE, $maxy * $maxx, 0, 0); $OUT->FillChar('X', $maxy*$maxx, 0, 0); $OUT->Window(1, 0, 0, $maxx, $maxy); while ($maxx>1 and $maxy>1) { $maxx -= 5; $maxy -= 5; $OUT->Window(1, 0, 0, $maxx, $maxy); sleep 1; } $OUT->Window(1, 0, 80, 50); $OUT->Cls;
Indeed, the screen size is dynamically variable - but if I remove/mark the sleep command than I can't see the screen resize.
I Would love to know what I was doing wrong, how can I make my current screen resize to 80*100 and stay on this size?
Mode command I used is good indeed, the only problem is that it disappear the buffer size and the user can't scroll the screen up and down
Thanks.
In reply to Re^4: How can I increase the cmd.exe screen size permanently - by Perl
by roteme
in thread How can I increase the cmd.exe screen size permanently - by Perly
by roteme
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |