Skip Menu |

This queue is for tickets about the Term-Menus CPAN distribution.

Report information
The Basics
Id: 18382
Status: resolved
Priority: 0/
Queue: Term-Menus

People
Owner: Nobody in particular
Requestors: patrick3 [...] shareinet.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.1
Fixed in: (no value)



Subject: Error in 'clear console' logic for MSWin32?
The logic to clear the screen before showing a menu starts at line 937. If using a normal Win32 console, the 'elsif' clause should be selected, but it since $clear is nonzero, execution never follows this path. if ($OS ne 'cygwin') { if ($clear) { print $clear; } elsif ($OS eq 'MSWin32') { system("cmd /c cls"); print "\n"; } else { print `clear`."\n"; } } In MSWin32, this results in the text: 'clear' is not recognized as an inteoperable program or batch file. being printed to the console. I changed my local file to: if ($OS ne 'cygwin') { if ($OS eq 'MSWin32') { system("cmd /c cls"); print "\n"; } else { print `clear`."\n"; } } which works ok on Win32, though I have not tried it on other *nix installs.
Fixed in version 1.34. * Fixed bug https://rt.cpan.org/Ticket/Display.html?id=18382 where the screen was not properly clearing for Windows