#include "config.h"
#include "robIO.h"
#include "term.h"

Go to the source code of this file.
Functions | |
| void | printUsage (string path) |
| void | termWrite (IWriter *writer, const string &data) |
| write datat to terminal | |
| bool | termRead (ICharReader *reader) |
| read data from terminal | |
| int | main (int argc, char *argv[]) |
Variables | |
| static const char * | stty = "stty" |
| stty(1) command | |
| static const char * | sttyInitString = "5:4:800004bf:a30:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0" |
| stty(1) tty init argument | |
| static const int | dtPingTimeout = 1000 |
| timeout per read begin | |
| static const int | dtCharTimeout = 100 |
| timeout per read of char | |
| static const char * | histFile = ".rob08_terminal_history" |
| readline history file | |
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 84 of file chat.cc.
References StreamDecorator::C_LIGHT_GREEN, StreamDecorator::C_NO_COLOR, TermFactory::createTerm(), StreamDecorator::E_ERROR, StreamDecorator::E_NOTE, StreamDecorator::E_WARNING, ICharReader::getChar(), ICharReader::hasInput(), histFile, printUsage(), stty, sttyInitString, termRead(), and termWrite().

| void printUsage | ( | string | path | ) |
| bool termRead | ( | ICharReader * | reader | ) |
read data from terminal
Definition at line 72 of file chat.cc.
References StreamDecorator::C_LIGHT_BLUE, StreamDecorator::C_NO_COLOR, dtCharTimeout, dtPingTimeout, ICharReader::getChar(), and ICharReader::hasInput().
Referenced by main().


| void termWrite | ( | IWriter * | writer, | |
| const string & | data | |||
| ) |
write datat to terminal
Definition at line 63 of file chat.cc.
References StreamDecorator::C_NO_COLOR, StreamDecorator::C_YELLOW, and IWriter::writeText().
Referenced by main().


const int dtCharTimeout = 100 [static] |
const int dtPingTimeout = 1000 [static] |
const char* histFile = ".rob08_terminal_history" [static] |
const char* stty = "stty" [static] |
const char* sttyInitString = "5:4:800004bf:a30:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0" [static] |
1.5.4