Enerccio / ewlc

Wayland compositor library - extended
MIT License
20 stars 3 forks source link

xterm text corruption #61

Open WLCIssuesBot opened 7 years ago

WLCIssuesBot commented 7 years ago

Issue by tuncer Sunday May 29, 2016 at 19:29 GMT Originally opened as https://github.com/Cloudef/wlc/issues/170


With wlc 0.0.3 as found in Archlinux, xterm under both orbment and sway randomly draws some characters partially. No such issue when running the same xterm under Weston.

WLCIssuesBot commented 7 years ago

Comment by Earnestly Sunday May 29, 2016 at 19:30 GMT


Can you demonstrate this in a screenshot, or at least how to reproduce this visual(?) corruption?

WLCIssuesBot commented 7 years ago

Comment by tuncer Sunday May 29, 2016 at 19:35 GMT


Start a vanilla (no Xresources) or custom (personal Xresources) uxterm and run ls to print some text. If none of the characters are incomplete, either run ls a few more times or start and exit mc. The way it looks is that the right half or upper right part of some of characters is invisible. Given that the vanilla uxterm exhibits the same issue, it's safe to assume it's unrelated to font config.

WLCIssuesBot commented 7 years ago

Comment by Earnestly Sunday May 29, 2016 at 19:52 GMT


First of all, never use uxterm (or koi8rxterm), use -u8 instead as uxterm screws with your locale settings.

As for xterm -u8 with no X resources file, I can reproduce this. It's by default using the fixed font.

Here's a screenshot: xterm corruption

WLCIssuesBot commented 7 years ago

Comment by tuncer Sunday May 29, 2016 at 19:55 GMT


I didn't know about uxterm's locale issue. I'll change my bindings. Isn't there an X resource I can configure to achieve -u8 by default (zero args passed to xterm)?

WLCIssuesBot commented 7 years ago

Comment by tuncer Sunday May 29, 2016 at 19:57 GMT


What terminal do others run under Wayland? weston-terminal doesn't really work for me and st's Wayland fork is also very buggy in addition to st's general incompatibilities (compared to xterm).

WLCIssuesBot commented 7 years ago

Comment by Earnestly Sunday May 29, 2016 at 20:00 GMT


According to xterm(1) you can set the class utf8 to 2 to always use UTF-8 encoding regardless of locale while disallowing it from being disabled. Other options are 0 (false), 1 (true) and 3 which is the default and based on the locale class.

WLCIssuesBot commented 7 years ago

Comment by tuncer Sunday May 29, 2016 at 20:01 GMT


I have that already set to 1, that seems sufficient then. Thanks for the tip.

WLCIssuesBot commented 7 years ago

Comment by FreeFull Friday Jun 10, 2016 at 05:28 GMT


It seems that whole columns of pixels are missing. Is there a mismatch between how wide xterm thinks it is, and how wide wlc considers it to be?

Edit: I've noticed when I set xterm to be fullscreen, that sometimes rows of pixels are missing too.

WLCIssuesBot commented 7 years ago

Comment by FreeFull Saturday Jun 18, 2016 at 16:15 GMT


I think I've found another program that experiences the same rendering problem: The help system for SWI Prolog