#include <FShGetLine.h>
Inherits GetLine.
Inheritance diagram for FShGetLine:


Public Member Functions | |
| FShGetLine (FSh *shell) | |
| virtual | ~FShGetLine () |
Protected Member Functions | |
| virtual int | onTab (char *buffer, const int promptWidth, int *cursorLoc, int *i) |
| virtual int | onOutput (const char *buf) |
| virtual int | onPutc (const char c) |
| virtual int | onPuts (const char *buf) |
| virtual unsigned int | onStrlen (const char *str) |
Private Attributes | |
| FSh * | _shell |
| TcpConnection * | _connection |
| Forth * | _forth |
Definition at line 18 of file FShGetLine.h.
| FShGetLine::FShGetLine | ( | FSh * | shell | ) |
Definition at line 19 of file FShGetLine.cpp.
References FSh::_connection, _connection, _forth, _shell, CSTRING(), ERROR, ERROR_BACKTRACE(), FAILED(), Support::failure(), MSG_NULL_POINTER, GetLine::setPrompt(), and Connection::writeStr().
| FShGetLine::~FShGetLine | ( | ) | [virtual] |
Definition at line 50 of file FShGetLine.cpp.
| int FShGetLine::onTab | ( | char * | buffer, | |
| const int | promptWidth, | |||
| int * | cursorLoc, | |||
| int * | i | |||
| ) | [protected, virtual] |
Reimplemented from GetLine.
Definition at line 56 of file FShGetLine.cpp.
References _connection, _forth, CSTRING(), String::eol(), ERROR_BACKTRACE(), FAILED(), FSH_GETLINE_BEEP, GL_LIMIT_BUFFER_SIZE, String::intersection(), LIMIT_FORTH_WORDS_PER_LINE, NamedObject::names(), OK, GetLine::prompt(), Connection::write(), and Connection::writeStr().
| int FShGetLine::onOutput | ( | const char * | buf | ) | [protected, virtual] |
Implements GetLine.
Definition at line 134 of file FShGetLine.cpp.
References _connection, _forth, _shell, CORE(), CSTRING(), String::eol(), ERROR_BACKTRACE(), FAILED(), GetLine::kill(), OK, GetLine::setPrompt(), and Connection::writeStr().
| int FShGetLine::onPutc | ( | const char | c | ) | [protected, virtual] |
Implements GetLine.
Definition at line 156 of file FShGetLine.cpp.
References _connection, ERROR_BACKTRACE(), FAILED(), OK, and Connection::write().
| int FShGetLine::onPuts | ( | const char * | buf | ) | [protected, virtual] |
Implements GetLine.
Definition at line 172 of file FShGetLine.cpp.
References _connection, ERROR_BACKTRACE(), FAILED(), OK, and Connection::write().
| unsigned int FShGetLine::onStrlen | ( | const char * | str | ) | [protected, virtual] |
Reimplemented from GetLine.
Definition at line 187 of file FShGetLine.cpp.
References String::colorLength().
FSh* FShGetLine::_shell [private] |
TcpConnection* FShGetLine::_connection [private] |
Definition at line 39 of file FShGetLine.h.
Referenced by FShGetLine(), onOutput(), onPutc(), onPuts(), and onTab().
Forth* FShGetLine::_forth [private] |
1.5.1