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

Add support for "Monospace" control code (ASCII 0x11). #2672

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

ctrlaltca
Copy link
Contributor

Idling in some channels i received some message that our ircview was not able to cope with.
Turns out these messages contained ASCII 0x11, that's supposed to start a text section using monospace font.
https://modern.ircdocs.horse/formatting#monospace
I guess the idea is to replicate the preformatted text used eg. by markdown or html's <pre>, <tt>, <code> tags.

This PR add support for detecting this control code, so that the text get printed correctly, but by now the control code gets ignored.
Adding support for rendering different fonts in KviIrcView would require some heavy work and probably a few new options.

Copy link
Member

@DarthGandalf DarthGandalf left a comment

Choose a reason for hiding this comment

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

To clarify: there's no way to input this character yet?

@ctrlaltca
Copy link
Contributor Author

To clarify: there's no way to input this character yet?

Nope, outside of hacks like $char(17)

@ctrlaltca ctrlaltca merged commit cf5a03a into kvirc:master Aug 2, 2024
4 of 5 checks passed
@ctrlaltca ctrlaltca deleted the monospace branch August 2, 2024 09:09
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