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

fix coloring in bash 🎉 #94

Merged
merged 1 commit into from
Sep 28, 2020
Merged

fix coloring in bash 🎉 #94

merged 1 commit into from
Sep 28, 2020

Conversation

aaronjanse
Copy link
Owner

ecma48 clears the Raw data buffer when it emits an event. Bash sets multiple styles/colors in the same commend. So, the 2nd+ events emitted for these multi-style sequences had an empty Raw data list, causing them to be ignored by vterm.

I think the original reason for skipping events with empty Raw data was for a bug that was fixed by rewriting the ecma48
parser.

Copy link
Collaborator

@PotatoParser PotatoParser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@aaronjanse aaronjanse changed the base branch from aj2020sep-cleaner-boot to master September 28, 2020 23:34
ecma48 clears the data buffer when it emits an event. Bash sets multiple styles/colors in the same commend. So, the 2nd+
events emitted for these multi-style sequences had an empty data list, causing them to be ignored by vterm.

IIRC, the original reason for skipping events with empty Raw data was for a bug that was fixed by rewriting the ecma48
parser.
@aaronjanse aaronjanse force-pushed the aj2020sep-fix-bash-colors branch from 2e00523 to e1d650f Compare September 28, 2020 23:35
@aaronjanse aaronjanse merged commit 6ad5063 into master Sep 28, 2020
@aaronjanse aaronjanse mentioned this pull request Sep 28, 2020
@aaronjanse aaronjanse deleted the aj2020sep-fix-bash-colors branch March 8, 2021 22:28
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