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

Improvement: expose cecho2ansi and have it work for non-ansi color names as well #5672

Merged
merged 3 commits into from Dec 1, 2021

Conversation

demonnic
Copy link
Member

@demonnic demonnic commented Nov 21, 2021

Brief overview of PR changes/additions

While perusing the ansi conversion functions I realized we were doing all the work of cecho2ansi but had not exposed it as separate functionality. Since we have done so for d and hecho, it made sense to me to perform this refactor.

In the process I also added support for colors which are not named ansi colors but exist in the color table.

Motivation for adding to Mudlet

More complete API, consistency across the c/d/h variants.

Other info (issues closed, discussion etc)

Tests will fail until #5671 is merged and then pulled back into this branch.

Release post highlight

@demonnic demonnic requested a review from a team as a code owner November 21, 2021 03:09
@add-deployment-links
Copy link

add-deployment-links bot commented Nov 21, 2021

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 21, 2021

Messages
✔️

PR type: Improvement

Generated by 🚫 dangerJS against 139ac6d

@demonnic demonnic added the needs documentation This pull request changes things the players would use/see and thus needs an update in the manual label Nov 21, 2021
@SlySven SlySven added the Lua only Issues with this label can be fixed by solely modifying lua code label Nov 22, 2021
@demonnic demonnic removed the needs documentation This pull request changes things the players would use/see and thus needs an update in the manual label Nov 25, 2021
@demonnic demonnic merged commit cef0167 into Mudlet:development Dec 1, 2021
@demonnic demonnic deleted the improve_cecho2ansi branch December 1, 2021 15:05
vadi2 pushed a commit to SlySven/Mudlet that referenced this pull request Jan 17, 2022
…mes as well (Mudlet#5672)

#### Brief overview of PR changes/additions
While perusing the ansi conversion functions I realized we were doing all the work of cecho2ansi but had not exposed it as separate functionality. Since we have done so for d and hecho, it made sense to me to perform this refactor.
In the process I also added support for colors which are not named ansi colors but exist in the color table. 
#### Motivation for adding to Mudlet
More complete API, consistency across the c/d/h variants.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Lua only Issues with this label can be fixed by solely modifying lua code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants