FACT++  1.0
bool ReadlineColor::PrintBootMsg ( std::ostream &  out,
const std::string &  name,
bool  interactive = true 
)
Returns
always true
Examples:
chatserv.cc.

Definition at line 24 of file ReadlineColor.cc.

References Time::fmt(), kBlue, kBold, kUnderline, and Time::reset.

Referenced by ConsoleStream::ConsoleStream(), main(), Shell::Run(), and Console::Run().

25 {
26 #if BOOST_VERSION < 104600
27  const string n = boost::filesystem::path(name).stem();
28 #else
29  const string n = boost::filesystem::path(name).stem().string();
30 #endif
31 
32  out << kBlue << kBold << kUnderline << "\n Master Control Program (compiled " __DATE__ " " __TIME__ << ") " << endl;
33  out << kBlue <<
34  "\n"
35  " ENCOM MX 16-923 USER # 0" << int(Time().Mjd()) << Time::fmt(" %H:%M:%S") << Time() << Time::reset << " INFORMATION\n"
36  "\n"
37  " TELESCOPE CONTROL PROGRAM: " << n << "\n"
38  " ANNEXED BY FACT COLLABORATION\n"
39  " ORIGINAL PROGRAM WRITTEN BY T.BRETZ\n"
40  " THIS INFORMATION " << kUnderline << "PRIORITY ONE"
41  << endl;
42  out << kBlue << " END OF LINE\n" << endl;
43 
44  if (!interactive)
45  return true;
46 
47  out << "Enter 'h' for help." << endl;
48  out << endl;
49 
50  return true;
51 }
Adds some functionality to boost::posix_time::ptime for our needs.
Definition: Time.h:30
static const _time_format reset
Definition: Time.h:39
Set attribute Underline.
Definition: WindowLog.h:32
Set color Blue.
Definition: WindowLog.h:20
static const _time_format fmt(const char *txt=0)
A stream manipulator to set the output/input format.
Definition: Time.cc:415
Set attribute Bold.
Definition: WindowLog.h:36

+ Here is the call graph for this function:

+ Here is the caller graph for this function: