Please do not show icon font logo by default

Bug #1769676 reported by James Swineson on 2018-05-07
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu
Wishlist
Unassigned

Bug Description

When the server is a distro with a custom multi-Unicode-codepoint character as the logo (e.g. Ubuntu) and when the client doesn't have the correct font installed and applied to the terminal software (this is very likely to happen on every OS and term software that is not from that distro), the logo character will be displayed as multiple characters, which will result in one of the following results:

1) When the term software doesn't do soft wrap AND used Unicode-compliant line width count method: the right few characters of the status bar will be out of window bound thus hidden from user
2) When the term software doesn't do soft wrap AND calculates line width by codepoints: there might be a horizontal scrollbar which results in broken CUI and sometimes misoperation (think you can't see the first column of the terminal output)
3) When the term software does soft wrap: every time when status bar text changes it will be moving up by one line. The user cannot correctly see terminal output since every second the caret changes position, and cannot effectively configure byobu to fix the problem. (The default Linux TTY is of this type.)

So, to avoid these problems, I suggest that by default these type of distro icons are not enabled, or at least use ASCII texts by default.

Related branches

Changed in byobu:
importance: Undecided → Wishlist
Dustin Kirkland  (kirkland) wrote :

Right.

It would be nice if we could detect this and do the right thing.

I guess we could use a circle, as an approximation of the Ubuntu logo.

Changed in byobu:
status: New → Triaged
status: Triaged → Won't Fix
status: Won't Fix → Fix Committed
StarBrilliant (m13253) wrote :

One possible solution is to issue an ANSI escape sequence "\x1b[4G" immediately after the logo is print, to reset the cursor position. (4 is the horizontal coordinate, you can change it accordingly.)

In case icon font is not installed or Unicode support is broken (Windows console renders any Unicode codepoint beyond U+FFFF as two broken characters, no matter in which code page, even with latest Windows 10), the cursor still gets reset to the correct position so no line wrap would happen.

James Swineson (jamesits) wrote :

Also the double exclamation mark character "‼" causes the same issue under the default Linux screen console.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers