CEO was heavily restructured by Alex, and then modified by a number of
authorceo <ceo>
Wed, 23 Oct 1996 05:26:52 +0000 (05:26 +0000)
committerceo <ceo>
Wed, 23 Oct 1996 05:26:52 +0000 (05:26 +0000)
    people. It has not been checked in for ages

ceo

diff --git a/ceo b/ceo
index 13cc296..7ae8eda 100755 (executable)
--- a/ceo
+++ b/ceo
@@ -9,6 +9,9 @@
 #                                                                      use this type of audit trail from now on.
 # 94/12/07             Alex Brodsky            Modified for Lynx 2.3.6
 # 95/01/01             Alex Brodsky            Set to new term, w95
+# 96/04/22             Alex Brodsky            Split of the term dependent stuff into a 
+#                                                                      seperate file called configure.pl
+# 96/06/05             Nikita Borisov          Hacks for FreeBSD console
 # 
 
 # load in required modules
@@ -76,16 +79,12 @@ sub Configure
     $QUOTATODOOLD = "$CSCDISKHOME/records/to/do.old";
     $QUOTAINFO = "$CSCDISKHOME/.project";
 
-    ## This term and next
-    $TERM = "w96";
-    $NEXTTERM = "s96";
+    ## This term and next and other term depndent stuff loaded from configure.pl
+       require '/u/ceo/ceo/configure.pl';
+
     $CAPTERM = $TERM;
     $CAPTERM =~ tr/a-z/A-Z/;
 
-    ## Set these flags near the end of term
-    $NEXTTERMQUOTA = 1;
-    $NEXTTERMMEMBER = 1;
-
     ## List of people allowed to start ceo and use cash-box menu items
     $OFFICESTAFF = "$HOME/OSlist";
 
@@ -183,9 +182,15 @@ sub Login
 ##        exec "$SHELL -c '$ARGV[1]'" if ($ARGV[0] eq "-c");
 ##        exec $SHELL;
 ##    }
+       if ($term =~ /ansi/) {
+               $ENV{'TERM'} = "cons25";
+               $term = "cons25";
+       }
 
-    system "echo `resize` | $SHELL -t";
+    system "echo `resize` | $SHELL -t" unless ($term =~ /cons/); 
     system "stty echoprt echoctl erase \\^\\?";
+       system "stty rows 25" if ($term =~ /cons/);
+       print "My terminal is $term\n";
 
     $SIG{'INT'} = 'IGNORE';
     $SIG{'QUIT'} = 'IGNORE';