| 1544 | } |
| 1545 | |
| 1546 | void MainWindow::consoleClear() { |
| 1547 | if (m_nativeConsole) { |
| 1548 | int ret; |
| 1549 | #ifdef _WIN32 |
| 1550 | ret = system("cls"); |
| 1551 | #else |
| 1552 | ret = system("clear"); |
| 1553 | #endif |
| 1554 | if (ret == -1) { |
| 1555 | console(QStringLiteral("[CEmu] Error clearing console\n"), EmuThread::ConsoleErr); |
| 1556 | } |
| 1557 | } else { |
| 1558 | ui->console->clear(); |
| 1559 | } |
| 1560 | } |
| 1561 | |
| 1562 | void MainWindow::consoleStr() { |
| 1563 | if (int available = emu.read.available()) { |
no test coverage detected