Subject: | Term::Menus Bug Report - Sample Code Attached |
Date: | Wed, 19 Dec 2007 22:04:38 -0500 |
To: | <Brian.Kelly [...] fullautosoftware.com>, <bug-Term-Menus [...] rt.cpan.org> |
From: | "PEDRO CORDOBA" <pcordoba [...] jhmc.org> |
Brian:
I am writing a application based on and relying on the Term::Menus
interface. I have run into a problem with Term::Menus that I cannot
figure out. Maybe I'm doing something wrong.
PROBLEM:
Each call to subroutine where menu is defined and displayed (&Menu is
called) should result in menu selections made during that menu session
only (right?). However, subsequent calls to subroutine yields current
AND previous menu selections after choosing "finish".
See example below.
P.S. I am running Windows Vista using both Cygwin Perl and ActiveState
Perl and Term::Menus version 1.29. The code example attached uses cygwin
OS command `ls -1 /bin`.
Pedro Córdoba
=========================
Example:
MENU - FOR LOOP ITERATION #1
Choose a Utility:
1. [.exe
2. a2p.exe
3. addftinfo.exe
4. addr2line.exe
5. afmtodit
6. apropos
7. ar.exe
8. as.exe
9. ascii.exe
10. ash.exe
a. Select All. f. Finish.
421 Total Choices
Press ENTER (or "d") to scroll downward
OR "u" to scroll upward (Press "q" to quit)
PLEASE ENTER A CHOICE: 2
=====================================
Choose a Utility:
1. [.exe
* 2. a2p.exe
3. addftinfo.exe
4. addr2line.exe
5. afmtodit
6. apropos
7. ar.exe
8. as.exe
9. ascii.exe
10. ash.exe
a. Select All. c. Clear All.
f. Finish.
421 Total Choices
Press ENTER (or "d") to scroll downward
OR "u" to scroll upward (Press "q" to quit)
PLEASE ENTER A CHOICE: f
SELECTION COUNT: 1
SELECTIONS: [a2p.exe]
PRESS ENTER TO CONTINUE
=====================================
MENU - FOR LOOP ITERATION #2
Choose a Utility:
1. [.exe
2. a2p.exe
3. addftinfo.exe
4. addr2line.exe
5. afmtodit
6. apropos
7. ar.exe
8. as.exe
9. ascii.exe
10. ash.exe
a. Select All. f. Finish.
421 Total Choices
Press ENTER (or "d") to scroll downward
OR "u" to scroll upward (Press "q" to quit)
PLEASE ENTER A CHOICE:
=====================================
Choose a Utility:
1. [.exe
2. a2p.exe
3. addftinfo.exe
* 4. addr2line.exe
5. afmtodit
6. apropos
7. ar.exe
8. as.exe
9. ascii.exe
10. ash.exe
a. Select All. c. Clear All.
f. Finish.
421 Total Choices
Press ENTER (or "d") to scroll downward
OR "u" to scroll upward (Press "q" to quit)
PLEASE ENTER A CHOICE: f
=====================================
SELECTION COUNT: 2
SELECTIONS: [a2p.exe addr2line.exe]
PRESS ENTER TO CONTINUE
=====================================
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.