Skip to content

Colour in GAP banner logo#6224

Open
mtorpey wants to merge 2 commits into
gap-system:masterfrom
mtorpey:cool-gap-logo
Open

Colour in GAP banner logo#6224
mtorpey wants to merge 2 commits into
gap-system:masterfrom
mtorpey:cool-gap-logo

Conversation

@mtorpey
Copy link
Copy Markdown
Contributor

@mtorpey mtorpey commented Feb 9, 2026

This PR modifies the GAP banner on startup to show a rendering of the new logo. If the terminal encoding is UTF-8 it does this with nice Unicode dot characters, but falls back to letter o symbols otherwise.

As mentioned in Issue #6128, there is a possible concern with text wrapping. In an 80-character terminal some lines will be unnecessarily wrapped early due to the colour escape codes. I tried looking into the line-wrapping logic, but it was beyond me!

@fingolfin
Copy link
Copy Markdown
Member

The line wrapping code also suffers from other issues: it does not honor UTF-8 encoding (where multi bytes can lead to a single "glyph" being printed), nor does it know about double-wide glyphs.

@fingolfin
Copy link
Copy Markdown
Member

I actually wonder if we should just add some code to the kernel which skips over OSI escape sequences, and knows how to handle multi-byte UTF-8. It's not that hard... Hmm

@fingolfin
Copy link
Copy Markdown
Member

How about we merge a version of this without the fancy colors and unicode (so we have the new logo, at least in its "basic" form), and then the full version can wait until someone fixes the line wrapping logic (might be feasible with help of some AI tools...)

@fingolfin
Copy link
Copy Markdown
Member

@mtorpey can you please rebase this / resolve the merge conflict? Of course we are still not ready to merge this, but I hope we'll one day be ready...

Note that this currently causes issues with line-wrapping, since the engine that
wraps at a certain number of characters takes the colour control characters into
account even though they have no width. This makes lines wrap early, and if the
terminal is 80 characters wide that causes ugly behaviour. Hopefully this can be
fixed at some point.
@mtorpey mtorpey changed the title New logo in GAP banner Colour in GAP banner logo May 25, 2026
@mtorpey mtorpey added the do not merge PRs which are not yet ready to be merged (e.g. submitted for discussion, or test results) label May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge PRs which are not yet ready to be merged (e.g. submitted for discussion, or test results)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants