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

UI issue on Ubuntu Bionic #25

Closed
clangen opened this issue Jan 30, 2019 · 17 comments
Closed

UI issue on Ubuntu Bionic #25

clangen opened this issue Jan 30, 2019 · 17 comments
Labels

Comments

@clangen
Copy link

clangen commented Jan 30, 2019

First off, really cool project!

It works very well on my Arch install, but seems to have character-drawing problems on Ubuntu. Maybe specific to my setup, but I spent a few minutes looking at the code and my environment and didn't see anything obviously wrong.

Here's what I see shelled into my Ubuntu machine:

image

Output from locale seems reasonable:

➜ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

I also thought maybe it was some sort of Unicode character drawing issue, but I tried another terminal-based app and it seems to be rendering extended (non-Latin, UTF8) characters just fine.

For reference, here's what it looks like when I'm shelled into my Arch install:

image

@c0r73x
Copy link
Member

c0r73x commented Jan 30, 2019 via email

@clangen
Copy link
Author

clangen commented Jan 30, 2019

Yep, that fixed it. Thanks! :)

@Hund
Copy link

Hund commented Feb 9, 2019

Let me know if I should create a separate issue for this. I have the same issue on Gentoo with your ebuild[1] and the flag wide. What to do?

1: https://github.com/fulhax/fulhax-overlay/blob/master/media-sound/ncpamixer/ncpamixer-1.3.3.ebuild

@c0r73x
Copy link
Member

c0r73x commented Feb 10, 2019 via email

@Hund
Copy link

Hund commented Feb 10, 2019

This. :/

2019-02-10-010725_508x148_scrot

@c0r73x
Copy link
Member

c0r73x commented Feb 10, 2019 via email

@c0r73x
Copy link
Member

c0r73x commented Feb 10, 2019

Ah, ok.. it seems i run the 9999 version with the wide flag on. Probably the 1.3.3 tag is incorrect.

@zatnas
Copy link

zatnas commented Feb 12, 2019

I am still having the issue of terminal not showing correctly after running make distclean and USE_WIDE=1 make respectively instead of just make.

I seem to have no issue of displaying the character since it shows the character perfectly fine in Vim.
Can you help me trace down the issue?

System: Debian 9.7.0
Terminal: st

Cloned from the master.

@c0r73x
Copy link
Member

c0r73x commented Feb 12, 2019

Did you run make distclean before running USE_WIDE=1 make?

@zatnas
Copy link

zatnas commented Feb 12, 2019

Yes, I have run make distclean to clean the build beforehand.

@c0r73x
Copy link
Member

c0r73x commented Feb 12, 2019

Did you clone from master, or is it the 1.3.3 file?

@zatnas
Copy link

zatnas commented Feb 12, 2019

I cloned it from the master

@c0r73x
Copy link
Member

c0r73x commented Feb 12, 2019

I will have to set up a vm with debian when I get home to do some testing, seems it refuses to use ncursesw for some strange reason :(

@hamsterready
Copy link

Install these:

sudo apt-get install libncursesw6 lib64ncursesw6

and when you build with USE_WIDE=1 look for something like this:

-- Looking for wsyncup in /usr/lib/x86_64-linux-gnu/libcurses.so
-- Looking for wsyncup in /usr/lib/x86_64-linux-gnu/libcurses.so - found
-- Looking for cbreak in /usr/lib/x86_64-linux-gnu/libncursesw.so
-- Looking for cbreak in /usr/lib/x86_64-linux-gnu/libncursesw.so - found

Worked for me.

@Hund
Copy link

Hund commented Mar 9, 2019

Any news on this? :)

@c0r73x
Copy link
Member

c0r73x commented Mar 12, 2019

Hi, I've been quite busy and havn't got time to check on this. But from @hamsterready 's comment it seems that Ubuntu don't shipt with ncursesw by default?

@Tonus1
Copy link

Tonus1 commented Jan 17, 2020

Hi,
Same problem here on Slackware64-current.

ls /usr/include/ncursesw/
total 380K
-rw-r--r-- 1 root root  98K janv.  1 05:21 curses.h
-rw-r--r-- 1 root root 6,7K janv.  1 05:21 cursesapp.h
-rw-r--r-- 1 root root  28K janv.  1 05:21 cursesf.h
-rw-r--r-- 1 root root  20K janv.  1 05:21 cursesm.h
-rw-r--r-- 1 root root 8,5K janv.  1 05:21 cursesp.h
-rw-r--r-- 1 root root  49K janv.  1 05:21 cursesw.h
-rw-r--r-- 1 root root 7,2K janv.  1 05:21 cursslk.h
-rw-r--r-- 1 root root 2,9K janv.  1 05:21 eti.h
-rw-r--r-- 1 root root 9,5K janv.  1 05:21 etip.h
-rw-r--r-- 1 root root  19K janv.  1 05:21 form.h
-rw-r--r-- 1 root root  12K janv.  1 05:21 menu.h
-rw-r--r-- 1 root root 4,1K janv.  1 05:21 nc_tparm.h
lrwxrwxrwx 1 root root    8 janv.  8 23:00 ncurses.h -> curses.h
-rw-r--r-- 1 root root 4,4K janv.  1 05:21 ncurses_dll.h
-rw-r--r-- 1 root root 4,1K janv.  1 05:21 panel.h
-rw-r--r-- 1 root root  41K janv.  1 05:21 term.h
-rw-r--r-- 1 root root 8,9K janv.  1 05:21 term_entry.h
-rw-r--r-- 1 root root 3,4K janv.  1 05:21 termcap.h
-rw-r--r-- 1 root root  15K janv.  1 05:21 tic.h
-rw-r--r-- 1 root root 3,1K janv.  1 05:21 unctrl.h

Tried to add :
-DWITH_UNICODE=1
-DNCURSESW_H_INCLUDE="ncursesw/ncurses.h"
With no luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants