forked from qt-creator/qt-creator
Terminal: Improve performance for cat /dev/random
Change-Id: Ibc7e09dd9388fd6f06f0bed3ade4e83d05f03c28 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -76,7 +76,7 @@ protected:
|
||||
bool event(QEvent *event) override;
|
||||
|
||||
protected:
|
||||
void onReadyRead();
|
||||
void onReadyRead(bool forceFlush);
|
||||
void setupVTerm();
|
||||
void setupFont();
|
||||
void setupPty();
|
||||
@@ -110,6 +110,8 @@ protected:
|
||||
|
||||
void updateScrollBars();
|
||||
|
||||
void flushVTerm(bool force);
|
||||
|
||||
private:
|
||||
std::unique_ptr<Utils::QtcProcess> m_process;
|
||||
|
||||
@@ -151,14 +153,15 @@ private:
|
||||
QAction m_zoomInAction;
|
||||
QAction m_zoomOutAction;
|
||||
|
||||
QTimer m_readDelayTimer;
|
||||
int m_readDelayRestarts{0};
|
||||
QTimer m_flushDelayTimer;
|
||||
|
||||
int m_layoutVersion{0};
|
||||
|
||||
std::array<QColor, 18> m_currentColors;
|
||||
|
||||
Utils::Terminal::OpenTerminalParameters m_openParameters;
|
||||
|
||||
QDateTime m_lastFlush;
|
||||
};
|
||||
|
||||
} // namespace Terminal
|
||||
|
||||
Reference in New Issue
Block a user