MCPcopy Create free account
hub / github.com/YosysHQ/nextpnr / handleReturnKeyPress

Method handleReturnKeyPress

3rdparty/python-console/Console.cpp:66–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void 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
89void Console::parseEvent( const ParseMessage& message )
90{

Callers

nothing calls this directly

Calls 5

bufferedMethod · 0.80
push_backMethod · 0.80
processMethod · 0.45
sizeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected