2021-04-11 18:41:44 -04:00
|
|
|
#!/usr/bin/perl
|
|
|
|
|
|
|
|
use warnings;
|
|
|
|
use strict;
|
|
|
|
|
2021-04-11 19:12:37 -04:00
|
|
|
use lib "./";
|
|
|
|
use NTVL;
|
|
|
|
use LPST;
|
|
|
|
|
2021-04-11 18:41:44 -04:00
|
|
|
package MNU;
|
|
|
|
|
|
|
|
sub prompt(){
|
|
|
|
printf("> ");
|
|
|
|
my $in;
|
|
|
|
$in = <STDIN>;
|
|
|
|
chomp $in;
|
|
|
|
|
|
|
|
return $in;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub loop(){
|
|
|
|
my $in = prompt();
|
|
|
|
|
|
|
|
return 0 unless $in;
|
|
|
|
return 0 if $in eq "quit";
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 1;
|