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

[Feature Suggestion/Request] Applying original colors after the running effect finished #6

Open
Navid-Means-Promise opened this issue Mar 14, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@Navid-Means-Promise
Copy link
Contributor

Well, As dear @ChrisBuilds mentioned in this issue

Every effect has the option to colorize the final output to maintain some consistency throughout the effect.

.I believe that a good way to keep the consistency of the effects is to define a function to do a post processing. a secondary effect in other word.
This secondary effect will change the color of the required characters from their current effect specific colors to their original colors using for example a fade-in manner.
.Obviously there can be more secondary effects for applying original colors in the future

@remino
Copy link

remino commented May 29, 2024

I second this.

Also would be great if it could discard the ANSI colour codes it gets from its input before outputting the content.

@ChrisBuilds ChrisBuilds added the enhancement New feature or request label Jun 1, 2024
@alexandr-
Copy link

i have the same request. how about an option to ignore the input colors and just do the animation?

@ChrisBuilds
Copy link
Owner

i have the same request. how about an option to ignore the input colors and just do the animation?

I may be misunderstanding but do you mean produce a colorless animation? If so, there is a --no-color option.

@alexandr-
Copy link

i have the same request. how about an option to ignore the input colors and just do the animation?

I may be misunderstanding but do you mean produce a colorless animation? If so, there is a --no-color option.

It somehow modifies the (color) values of \033 ANSI sequences (eg. echo -e "\033[48;5;89mtest" | tte --no-color slide)

@ChrisBuilds
Copy link
Owner

It somehow modifies the (color) values of \033 ANSI sequences (eg. echo -e "\033[48;5;89mtest" | tte --no-color slide)

It doesn't actually process the sequences. It's treating that whole line as input text so you're seeing undefined behavior that will depend on many factors. I am currently working on a feature which handles sequences in the input text. Hoping to have it in the 0.12.0 release.

@alexandr-
Copy link

Awesome! Looking forward to your already amazing work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants