mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 11:26:11 +00:00
the output of rizin was formatted as html, which caused \n to become <br/>, making it impossible to just use appendPlainText() as-is. We have to tell rizin not to give us html, so that we can use \t in the output. Simply replacing \t with spaces, ` ` or similar doesn't work, as the appendHtml() replaces multiple spaces with one.
This commit is contained in:
parent
238dd62165
commit
8f707e4a69
@ -229,10 +229,10 @@ void ConsoleWidget::executeCommand(const QString &command)
|
||||
|
||||
RVA oldOffset = Core()->getOffset();
|
||||
commandTask = QSharedPointer<CommandTask>(
|
||||
new CommandTask(command, CommandTask::ColorMode::MODE_256, true));
|
||||
new CommandTask(command, CommandTask::ColorMode::MODE_256, false));
|
||||
connect(commandTask.data(), &CommandTask::finished, this,
|
||||
[this, cmd_line, command, oldOffset](const QString &result) {
|
||||
ui->outputTextEdit->appendHtml(result);
|
||||
ui->outputTextEdit->appendPlainText(result);
|
||||
scrollOutputToEnd();
|
||||
historyAdd(command);
|
||||
commandTask.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user