ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/ActiveDoc/SimpleUserInterface.pm
(Generate patch)

Comparing COMP/SCRAM/src/ActiveDoc/SimpleUserInterface.pm (file contents):
Revision 1.5 by williamc, Mon Feb 7 07:57:03 2000 UTC vs.
Revision 1.6 by williamc, Wed Feb 23 14:54:01 2000 UTC

# Line 32 | Line 32 | sub askuser {
32          # print out informational
33          my $title=$userquery->title();
34          if ( $title ne "" ) {
35 <         print "-"x80;
35 >         print "-"x50;
36           print "\n";
37           print $title."\n";
38 <         print "-"x80;
38 >         print "-"x50;
39           print "\n";
40          }
41          print $userquery->intro();
# Line 54 | Line 54 | sub _executequery {
54          my $query=shift;
55  
56          # -- informational for each query
57 <        print "+"x80;
57 >        print "+"x30;
58          print $userquery->querymessage($query)."\n";
59  
60          # -- ship off to the correct routine based on type
# Line 121 | Line 121 | sub freechoice {
121                  last;
122          }
123          #  Deal with alternative value
124 <        if ( $menuchoice == $num ) {
125 <          $rv=$self->basic($prompt);
126 <        }
127 <        elsif ( !defined $menuchoice ) {
124 >        if ( !defined $menuchoice ) {
125                  print "Cancelled\n";
126                  $rv=undef;
127          }
128 +        elsif ( $menuchoice == $num ) {
129 +          $rv=$self->basic($prompt);
130 +        }
131          else {
132            $rv=$options[$menuchoice-1];
133            print( $rv." selected\n");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines