epasveer / seer

Seer - a gui frontend to gdb
GNU General Public License v3.0
2.09k stars 66 forks source link

Showing string variables with tabs and return characters looks bad. #189

Closed epasveer closed 9 months ago

epasveer commented 9 months ago

When showing a string with tabs and return characters, the formatting is all wrong. I'd like it to show a \n instead of a real return. Same as with \t.

It looks bad:

image

Fix it in "logger", "tracker", "locals", and "arguments". Also the hover highlighting.

Possibly look at truncating long strings using ...:

'Treasure' by Lucillius\n\n\tThey call thee rich; I  ... \tThe treasure is not thine, but theirs.\n

The test program is here:

https://github.com/epasveer/seer/tree/main/tests/hellopoem

epasveer commented 9 months ago

As well, the "name" column should be aligned RIGHT|TOP, not RIGHT|CENTER.

epasveer commented 9 months ago

This is fixed.

image

Also, fixed long tooltips text by restricting them to 100 characters. The text in the various viewing dialogs is still the full length. The 100 limit probably needs to be configurable but I will decide later if people complain :^)