| 64 | } |
| 65 | |
| 66 | void Console::handleReturnKeyPress( ) |
| 67 | { |
| 68 | if ( ! cursorIsOnInputLine( ) ) |
| 69 | { |
| 70 | return; |
| 71 | } |
| 72 | |
| 73 | QString line = getLine( ); |
| 74 | |
| 75 | m_parseHelper.process( line.toStdString( ) ); |
| 76 | if ( m_parseHelper.buffered( ) ) |
| 77 | { |
| 78 | append(""); |
| 79 | displayPrompt( ); |
| 80 | } |
| 81 | if ( line.size( ) ) |
| 82 | { |
| 83 | m_historyBuffer.push_back( line.toStdString( ) ); |
| 84 | m_historyIt = m_historyBuffer.end(); |
| 85 | } |
| 86 | moveCursorToEnd( ); |
| 87 | } |
| 88 | |
| 89 | void Console::parseEvent( const ParseMessage& message ) |
| 90 | { |