ClearLine PICoutManipulator

git-svn-id: svn://db.shs.com.ru/pip@66 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
2015-04-07 07:34:05 +00:00
parent 84f01c640a
commit ac5d7f8e33
3 changed files with 25 additions and 2 deletions

View File

@@ -35,10 +35,10 @@ private:
}
EVENT_HANDLER(void, ftevent) {
piCout << ft.stateString() << PIString::readableSize(ft.diagnostic().receiveBytesPerSec()) + "/s"
PICout(PICoutManipulators::AddSpaces) << PICoutManipulators::ClearLine << ft.stateString() << PIString::readableSize(ft.diagnostic().receiveBytesPerSec()) + "/s"
<< PIString::readableSize(ft.diagnostic().sendBytesPerSec()) + "/s"
<< "(" << PIString::readableSize(ft.bytesFileCur()) << "/" << PIString::readableSize(ft.bytesFileAll()) << ", "
<< PIString::readableSize(ft.bytesCur()) << "/" << PIString::readableSize(ft.bytesAll()) << ")";
<< PIString::readableSize(ft.bytesCur()) << "/" << PIString::readableSize(ft.bytesAll()) << ")" << PICoutManipulators::Flush;
}
EVENT_HANDLER1(void, ftsend, PIByteArray &, data) {
@@ -72,6 +72,7 @@ int main (int argc, char * argv[]) {
piCout << "wait for receiving";
}
WAIT_FOR_EXIT
PICout() << "\n";
return 0;
}