genie icon indicating copy to clipboard operation
genie copied to clipboard

Genie with powerline

Open jmauro opened this issue 3 years ago • 8 comments

Windows version (build number): image

Linux's distribution:

 $ cat /etc/debian_version
bookworm/sid

Kernel version:

cat /proc/sys/kernel/osrelease
5.10.102.1-microsoft-standard-WSL2

Genie version:

$ genie --version
genie 2.3

Describe the bug When activating the powerline inside the bottle, the fonts doesn't seem to work:

dpkg -l *powerline*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name              Version      Architecture Description
+++-=================-============-============-=================================================
ii  fonts-powerline   2.8.3-1      all          prompt and statusline utility (symbols font)
ii  powerline         2.8.3-1      amd64        prompt and statusline utility
un  powerline-doc     <none>       <none>       (no description available)
ii  python3-powerline 2.8.3-1      all          prompt and statusline utility (Python 3.x module)

image Inside the bottle image

Expected behavior I would expect the following output: image The current output: image

Additional context I am using the 'Cascadia Code PL' on Windows. I have no idea how to provide more information

I confirm that I have read the ENTIRE supplied readme file and checked for relevant information on the repository wiki before raising this issue, and that if the solution to this issue is found in either location, it will be closed without further comment:

  • [x] Yes.

jmauro avatar Jun 19 '22 21:06 jmauro

That's a very strange one, since genie shouldn't know or care anything about the font you're using; that should be between Windows and your terminal emulator. And speaking of which, which are you using? Windows Terminal?

(I use Powerline via oh-my-zsh on Debian myself, and can't say I've run into this one.)

cerebrate avatar Jun 22 '22 18:06 cerebrate

Hello, Yes I am running on WT with a debian testing and nothing fancy.

jmauro avatar Jun 22 '22 21:06 jmauro

So far, the only way I've found to reproduce a similar behavior (which I found by accident) is on my laptop, in which WSL entered on its own tab shows the PL characters and WSL entered via PowerShell does not. Same goes for sshing into a remote WSL.

The two tabs have identical font and other appearance settings.

(This is mostly a note to self, since it's the closest thing I've found so far.)

cerebrate avatar Jun 23 '22 20:06 cerebrate

Just to check the obvious, can you send me your TERM environment variable and stty -a output, and whether they differ from outside to inside the bottle?

cerebrate avatar Jun 23 '22 20:06 cerebrate

Oh, also: what font are you using? Do you have the same issue using a different font, such as Fira Code?

cerebrate avatar Jun 23 '22 21:06 cerebrate

Here are the term definition:

env | grep TERM
TERM_PROGRAM_VERSION=3.3a
TERM=screen-256color
TERM_PROGRAM=tmux

And here is my font: image

# outside 'genie'
$ stty -a
speed 38400 baud; rows 74; columns 292; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho -extproc
# inside 'genie'
$ stty -a
speed 38400 baud; rows 30; columns 120; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q;
stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop echoprt echoctl echoke -flusho -extproc

Let me know if you need something else.

I will try other fonts and let you know.

Kind regards, JM

jmauro avatar Jun 23 '22 21:06 jmauro

Exactly the same with "fire code" fonts. I don't know how to provide you more information and how to help

jmauro avatar Jun 23 '22 21:06 jmauro

Yeah. I don't know what to tell you myself, because as I said, I'm using Powerline on Debian myself and never saw this one. I'll keep looking into it as I have ideas, but unless I can find a repro case...

(Ah. One idea - the most likely possibility is that something systemd is starting is affecting the terminal. Could you send me the output of both systemctl status and systemctl alone, and I'll see if I can spot anything that might be doing it?)

cerebrate avatar Jun 24 '22 14:06 cerebrate

Closed as stale.

cerebrate avatar Sep 23 '22 18:09 cerebrate