Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporary fix for command output to console widget. #3265

Merged
merged 1 commit into from
Nov 11, 2023

Conversation

karliss
Copy link
Member

@karliss karliss commented Nov 11, 2023

Your checklist for this pull request

Detailed description

#3193 fixed the tab issue but it broke handling of any formatting resulting in many commands look like this:
image

Which in my opinion is completely unusable.

Restored the ansi to html conversion and added a hack for handling '\t' so that there is at leas some indendation when used at the start of line.

I have plans for improving the terminal widget that I will hopefully find time to implement in next couple of months.

Test plan (required)

  • !printf '\tabc\n' should print abc with some indendtation
  • ? should print help with correctly colored output instead of raw terminal codes as plaintext
  • tc __div_t should print the struct fields with some indendation

image
image

Closing issues

* partially revert rizinorg#3193 - printing the terminal escape sequences directly to text widget causes more issues than the tab problem it tried to fix
* move the conversation to html from command task to the console widget
* add hack converting tab to multiple spaces
@karliss karliss merged commit 7256fbb into rizinorg:dev Nov 11, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants