mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[code] The Python console compiles and executes commands entered.
It stores and displays the result in the console store. An empty line returned at the end of the execution is deleted. Change-Id: Ic90e02e2d91d0a0033413da0588032d9450aefd0
This commit is contained in:
@@ -13,6 +13,7 @@ public:
|
||||
int numberOfLines() const;
|
||||
void pushCommand(const char * text, size_t length);
|
||||
void pushResult(const char * text, size_t length);
|
||||
void deleteLastLineIfEmpty();
|
||||
private:
|
||||
static constexpr char CommandMarker = 0x01;
|
||||
static constexpr char ResultMarker = 0x02;
|
||||
@@ -25,6 +26,7 @@ private:
|
||||
* old ConsoleLines. deleteFirstLine() deletes the first ConsoleLine of
|
||||
* m_history and shifts the rest of the ConsoleLines towards the beginning of
|
||||
* m_history. */
|
||||
void deleteLastLine();
|
||||
char m_history[k_historySize];
|
||||
/* The m_history variable sequentially stores an array of ConsoleLine objects.
|
||||
* Each ConsoleLine is stored as follow:
|
||||
|
||||
Reference in New Issue
Block a user