migueldeicaza / SwiftTerm

Xterm/VT100 Terminal emulator in Swift
MIT License
992 stars 146 forks source link

ANSI escape codes do not render consistantly #314

Closed tgb20 closed 1 year ago

tgb20 commented 1 year ago

Describe the bug ANSI escape codes are not showing colors consistently.

To Reproduce Send a message with the following contents to a terminal:

[00:50:01 ERROR]: This is red This is also red! This is green And this is white
[00:50:01 INFO]: This is red This is also red! This is green And this is white
[00:50:01 WARN]: This is red This is also red! This is green And this is white

The ? are escape characters, I am not sure how to share them properly

Expected behavior All three lines are rendered with a different beginning log type and the same color text contents:

Screenshots

VSCode

VSCode preview

Xterm.js

Xterm.js

SwiftTerm

CleanShot 2023-07-06 at 20 53 42

Desktop (please complete the following information):

Smartphone (please complete the following information):

migueldeicaza commented 1 year ago

Perhaps this is your theme color you are using?

tgb20 commented 1 year ago

I have not made any theme or rendering changes.

migueldeicaza commented 1 year ago

Thanks for the bug report, this was indeed my bug, but only got to my computer now.

Fixed.