- Timestamp:
- 04/07/11 22:02:44 (14 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ReadlineColor.cc
r10321 r10325 23 23 bool ReadlineColor::PrintBootMsg(ostream &out, const string &name) 24 24 { 25 string n = boost::filesystem::basename(name); 26 if (n.substr(0, 3)=="lt-") 27 n = n.substr(3); 28 25 29 out << endl; 26 30 out << kBlue << kBold << kUnderline << " Master Control Program " << endl; … … 28 32 out << kBlue << " ENCOM MX 16-923 USER # 0" << int(Time().Mjd()) << Time::fmt(" %H:%M:%S") << Time() << Time::reset << " INFORMATION" << endl; 29 33 out << endl; 30 out << kBlue << " TELESCOPE CONTROL PROGRAM: " << boost::filesystem::basename(name)<< endl;34 out << kBlue << " TELESCOPE CONTROL PROGRAM: " << n << endl; 31 35 out << kBlue << " ANNEXED BY FACT COLLABORATION" << endl; 32 36 out << kBlue << " ORIGINAL PROGRAM WRITTEN BY T.BRETZ" << endl; -
trunk/FACT++/src/test3.cc
r10316 r10325 1 1 #include <boost/regex.hpp> 2 #include <boost/filesystem.hpp> 2 3 #include <readline/readline.h> 3 4 … … 119 120 void PrintVersion(const char *name) 120 121 { 122 string n = boost::filesystem::basename(name); 123 if (n.substr(0, 3)=="lt-") 124 n = n.substr(3); 125 121 126 cout << 122 n ame<< " - FACT++ 1.0\n"127 n << " - FACT++ 1.0\n" 123 128 "\n" 124 129 "Written by Thomas Bretz <thomas.bretz@epfl.ch> et al.\n"
Note:
See TracChangeset
for help on using the changeset viewer.