Last change
on this file since 10312 was 10266, checked in by tbretz, 14 years ago |
Omitted a variable - just cosmetics.
|
File size:
836 bytes
|
Line | |
---|
1 | #include "LocalControl.h"
|
---|
2 |
|
---|
3 | #include "tools.h"
|
---|
4 |
|
---|
5 | string LocalConsole::GetUpdatePrompt() const
|
---|
6 | {
|
---|
7 | // Compile a string like "server:state> "
|
---|
8 | const string end =
|
---|
9 | Form("\033[34m\033[1m%s\033[0m:\033[32m\033[1m%s\033[0m> ",
|
---|
10 | fName.c_str(), fStateMachine->GetStateName().c_str());
|
---|
11 |
|
---|
12 | // If we are continously flushing the buffer omit the buffer size
|
---|
13 | // If we are buffering show the buffer size
|
---|
14 | return GetLinePrompt() + " " + end;
|
---|
15 | }
|
---|
16 |
|
---|
17 | //#include <boost/regex.hpp>
|
---|
18 |
|
---|
19 | string LocalShell::GetUpdatePrompt() const
|
---|
20 | {
|
---|
21 | //const string s = (beg[0]=='\n'?beg.substr(1):beg) + " " + end;
|
---|
22 | //return boost::regex_replace(s, boost::regex("\033[[0-9]+m"), "");
|
---|
23 |
|
---|
24 | const string end =
|
---|
25 | Form("%s:%s> ", fName.c_str(),
|
---|
26 | fStateMachine->GetStateName().c_str());
|
---|
27 |
|
---|
28 | return GetLinePrompt() + " " + end;
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.