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

monitor: Use UTF-8 instead of ACS #77

Merged
merged 1 commit into from
May 15, 2024
Merged

Conversation

XePeleato
Copy link
Contributor

@XePeleato XePeleato commented Apr 14, 2024

Some terminal emulators, such as PuTTY or the macOS terminal, don't have full VT100 ACS support. For this reason, the RTS2 monitor borders and lines are not rendered properly.

Using the desired characters instead of ACS, we can render the monitor consistently for every terminal.
Here are some examples of the current monitor behaviour:
PuTTY:
Captura de pantalla 2024-04-13 204911

macOS:
image

This is particularly confusing when editing a value or looking for something.
This is the behaviour using this patch:
PuTTY:
image

macOS:
image

Some terminal emulators such as PuTTY or the macOS terminal don't have full VT100 ACS support. For this reason, the RTS2 monitor borders and lines are not rendered properly.

Some applications rely on using directly the equivalent UTF-8 character, making sure the terminal supports UTF-8 encoding.

This way, the monitor appareance is consistent between terminal emulators.
Copy link
Member

@pkubanek pkubanek left a comment

Choose a reason for hiding this comment

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

Thanks for commit - this code was written in times when UTF8 wasn't so widely used, and probably ncursesw did not exists.

@pkubanek pkubanek merged commit a529691 into RTS2:master May 15, 2024
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