Changeset 10998


Ignore:
Timestamp:
06/10/11 21:48:13 (14 years ago)
Author:
tbretz
Message:
Added compile time to boot message, added interactive flag.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/ReadlineColor.cc

    r10654 r10998  
    2121//!    always true
    2222//
    23 bool ReadlineColor::PrintBootMsg(ostream &out, const string &name)
     23bool ReadlineColor::PrintBootMsg(ostream &out, const string &name, bool interactive)
    2424{
    2525    string n = boost::filesystem::basename(name);
     
    2727        n = n.substr(3);
    2828
    29     out << endl;
    30     out << kBlue << kBold << kUnderline << " Master Control Program " << endl;
    31     out << endl;
    32     out << kBlue << " ENCOM MX 16-923 USER # 0" << int(Time().Mjd()) << Time::fmt(" %H:%M:%S") << Time() << Time::reset << " INFORMATION" << endl;
    33     out << endl;
    34     out << kBlue << " TELESCOPE CONTROL PROGRAM: " << n << endl;
    35     out << kBlue << " ANNEXED BY FACT COLLABORATION" << endl;
    36     out << kBlue << " ORIGINAL PROGRAM WRITTEN BY T.BRETZ" << endl;
    37     out << kBlue << " THIS INFOMATION " << kUnderline << "PRIORITY ONE" << endl;
    38     out << kBlue << " END OF LINE" << endl;
    39     out << endl;
     29    out << kBlue << kBold << kUnderline << "\n Master Control Program (compiled "__DATE__" " __TIME__ << ") " << endl;
     30    out << kBlue <<
     31        "\n"
     32        "  ENCOM MX 16-923 USER # 0" << int(Time().Mjd()) << Time::fmt(" %H:%M:%S") << Time() << Time::reset << " INFORMATION\n"
     33        "\n"
     34        "  TELESCOPE CONTROL PROGRAM: " << n << "\n"
     35        "  ANNEXED BY FACT COLLABORATION\n"
     36        "  ORIGINAL PROGRAM WRITTEN BY T.BRETZ\n"
     37        "  THIS INFOMATION " << kUnderline << "PRIORITY ONE"
     38        << endl;
     39    out << kBlue << "  END OF LINE\n" << endl;
     40
     41    if (!interactive)
     42        return true;
     43
    4044    out << "Enter 'h' for help." << endl;
    4145    out << endl;
  • trunk/FACT++/src/ReadlineColor.h

    r10304 r10998  
    66namespace ReadlineColor
    77{
    8     bool PrintBootMsg(std::ostream &out, const std::string &name);
     8    bool PrintBootMsg(std::ostream &out, const std::string &name, bool interactive=true);
    99    bool PrintAttributes(std::ostream &out);
    1010
Note: See TracChangeset for help on using the changeset viewer.