Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with cmus (font alignment)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Elserjo
n00b
n00b


Joined: 06 Jul 2021
Posts: 60

PostPosted: Tue Jul 12, 2022 5:20 pm    Post subject: Problem with cmus (font alignment) Reply with quote

Hello, everyone!

I have installed cmus and have faced strange problem with interface (font alignment in Artist column). Here example:

https://imgur.com/a/Kz121Zy

I have tried on Arch Linux on VirtualBox and all ok there...

https://imgur.com/imlJCGT

I have tried to recset gnome-terminal settings and load default profile with no result.

Here my system info:
Code:
[serg@gentoo-pc ~] $ emerge --info cmus
Portage 3.0.30 (python 3.10.5-final-0, default/linux/amd64/17.1/systemd, gcc-11.3.0, glibc-2.34-r13, 5.17.15-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.17.15-gentoo-x86_64-Intel-R-_Core-TM-_i7-9700K_CPU_@_3.60GHz-with-glibc2.34
KiB Mem:    16319204 total,   8470180 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 11 Jul 2022 19:00:01 +0000
Head commit of repository gentoo: 3875866e5ddfdf9e6d3e1df850304f81e1945376
Timestamp of repository steam-overlay: Sat, 02 Jul 2022 18:16:52 +0000
Head commit of repository steam-overlay: eaebbe2111901f4af3ad631aa97665b1a2139550

Timestamp of repository torbrowser: Sun, 10 Jul 2022 16:16:40 +0000
Head commit of repository torbrowser: ae470223cb8ccc9918a166bfbe1c07e9aa8d5bcd

sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           3.10.5::gentoo
dev-lang/rust-bin:         1.60.0::gentoo
dev-util/cmake:            3.22.4::gentoo
dev-util/meson:            0.61.4-r2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          250.6::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.4::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/llvm:            14.0.4::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r13::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

serg
    location: /var/db/repos/serg
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

torbrowser
    location: /var/db/repos/torbrowser
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/torbrowser.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 7 --load-average 7"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live cgroup collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://ftp.uni-hannover.de/gentoo/ https://mirror.netcologne.de/gentoo/ https://packages.hs-regensburg.de/gentoo-distfiles/ https://gentoo-mirror.alexxy.name/ https://mirror.yandex.ru/gentoo-distfiles/"
INSTALL_MASK="/usr/share/locale -/usr/share/locale/ru -/usr/share/locale/en -/usr/share/locale/en_US"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7 -l7"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X acl alsa amd64 bzip2 cli crypt cups dbus dri flac fortran gdbm gnome gnome-keyring gphoto2 gtk iconv ipv6 libglvnd libtirpc multilib ncurses networkmanager nls nptl opencl openmp pam pcre policykit pulseaudio readline seccomp split-usr ssl systemd udev unicode wayland xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2020" ALSA_CARDS="ca0132" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

media-sound/cmus-2.9.1-r1::gentoo was built with the following:
USE="alsa flac mad pulseaudio systemd unicode vorbis -aac -ao -cddb -cdio -debug -discid (-elogind) -examples -ffmpeg -jack -libsamplerate -mikmod -modplug -mp4 -musepack -opus -oss -pidgin -tremor -wavpack" ABI_X86="(64)"


I have been using gnome shell 42.1. Can you help me, please?
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Wed Jul 13, 2022 12:41 am    Post subject: Reply with quote

It looks like you are using different terminal applications on the two screenshots. Try to use the same terminal applications under Gentoo and under Arch Linux or VirtualBox.

Terminal applications can be configured. You can choose the character set (Latin-1, UTF-8, etc.), the terminal emulation mode (xterm, xterm-color256, vt102, etc.), the font, etc.? Does your terminal application under Gentoo have the same configuration as your terminal application under Arch Linux?

cmus uses ncurses. ncurses based applications can be configured through environment variables like TERM, LANG, LC_* (run 'export' in the shell). Do those environment variables have the same values under Gentoo and under Arch Linux?
Back to top
View user's profile Send private message
Elserjo
n00b
n00b


Joined: 06 Jul 2021
Posts: 60

PostPosted: Wed Jul 13, 2022 5:08 pm    Post subject: Reply with quote

mike155 wrote:
It looks like you are using different terminal applications on the two screenshots. Try to use the same terminal applications under Gentoo and under Arch Linux or VirtualBox.

Terminal applications can be configured. You can choose the character set (Latin-1, UTF-8, etc.), the terminal emulation mode (xterm, xterm-color256, vt102, etc.), the font, etc.? Does your terminal application under Gentoo have the same configuration as your terminal application under Arch Linux?

cmus uses ncurses. ncurses based applications can be configured through environment variables like TERM, LANG, LC_* (run 'export' in the shell). Do those environment variables have the same values under Gentoo and under Arch Linux?


Sorry for late reply.

Here some info.

1) echo $TERM

Code:
xterm-256color


2) localectl

Code:
System Locale: LANG=en_US.UTF-8
                  LANGUAGE=ru_RU:en_US:en
                  LC_CTYPE=ru_RU.UTF-8
                  LC_NUMERIC=ru_RU.UTF-8
                  LC_TIME=ru_RU.UTF-8
                  LC_COLLATE=ru_RU.UTF-8
                  LC_MONETARY=ru_RU.UTF-8
                  LC_MESSAGES=ru_RU.UTF-8
                  LC_PAPER=ru_RU.UTF-8
                  LC_NAME=ru_RU.UTF-8
                  LC_ADDRESS=ru_RU.UTF-8
                  LC_TELEPHONE=ru_RU.UTF-8
                  LC_MEASUREMENT=ru_RU.UTF-8
                  LC_IDENTIFICATION=ru_RU.UTF-8
       VC Keymap: ruwin_alt_sh-UTF-8
      X11 Layout: n/a


Params above are exactly same like in arch linux. I have also tried install gnome-terminal application with same settings on arch linux. And seems all ok there.

I was able to launch cmus on gentoo without trouble with font alignment by setting TERM variable to linux.

But now am just curios... Why on Arch it works fine with xterm-256color on both terminal (mate and gnome)?


Here also my .bashrc

Code:
 [[ $- != *i* ]] && return
 3
 4 export PATH=$PATH:~/.local/bin
 5 #export VISUAL=/usr/bin/gedit
 6 # No double entries in the shell history
 7 export HISTCONTROL="$HISTCONTROL erasedups:ignoreboth"
 8
 9 PS1='[\u@\h \W] \$ '
10
11 alias ls='ls --color=auto'
12 alias df='df -h'
13 alias mv='mv -iv'
14 alias du='du -h -s'
15 #alias curl='curl -L -O'
16 alias rm='rm -vI'
17 alias se='sudoedit'
18 #alias cmus='TERM=linux cmus'


Here also export output

Code:
declare -x COLORTERM="truecolor"
declare -x CONFIG_PROTECT="/usr/share/gnupg/qualified.txt"
declare -x CONFIG_PROTECT_MASK="/etc/sandbox.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/terminfo /etc/dconf /etc/ca-certificates.conf /etc/revdep-rebuild"
declare -x DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"
declare -x DESKTOP_SESSION="gnome-xorg"
declare -x DISPLAY=":0"
declare -x EDITOR="vi"
declare -x GCC_SPECS=""
declare -x GDMSESSION="gnome-xorg"
declare -x GDM_LANG="en_US.UTF-8"
declare -x GNOME_TERMINAL_SCREEN="/org/gnome/Terminal/screen/6bea9b1a_4529_4e9c_833a_b61a62b9d3ad"
declare -x GNOME_TERMINAL_SERVICE=":1.86"
declare -x GSETTINGS_BACKEND="dconf"
declare -x GTK_MODULES="canberra-gtk-module"
declare -x HISTCONTROL=" erasedups:ignoreboth"
declare -x HOME="/home/serg/"
declare -x INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/11.3.0/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.37_p1/info:/usr/share/info"
declare -x LANG="en_US.UTF-8"
declare -x LANGUAGE="ru_RU:en_US:en"
declare -x LC_ADDRESS="ru_RU.UTF-8"
declare -x LC_COLLATE="ru_RU.UTF-8"
declare -x LC_CTYPE="ru_RU.UTF-8"
declare -x LC_IDENTIFICATION="ru_RU.UTF-8"
declare -x LC_MEASUREMENT="ru_RU.UTF-8"
declare -x LC_MESSAGES="ru_RU.UTF-8"
declare -x LC_MONETARY="ru_RU.UTF-8"
declare -x LC_NAME="ru_RU.UTF-8"
declare -x LC_NUMERIC="ru_RU.UTF-8"
declare -x LC_PAPER="ru_RU.UTF-8"
declare -x LC_TELEPHONE="ru_RU.UTF-8"
declare -x LC_TIME="ru_RU.UTF-8"
declare -x LESS="-R -M --shift 5"
declare -x LESSOPEN="|lesspipe %s"
declare -x LOGNAME="serg"
declare -x LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.cfg=00;32:*.conf=00;32:*.diff=00;32:*.doc=00;32:*.ini=00;32:*.log=00;32:*.patch=00;32:*.pdf=00;32:*.ps=00;32:*.tex=00;32:*.txt=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:"
declare -x MAIL="/var/mail/serg"
declare -x MANPAGER="manpager"
declare -x MANPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/11.3.0/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.37_p1/man:/usr/local/share/man:/usr/share/man:/usr/lib/rust/man:/usr/lib/llvm/14/share/man"
declare -x MOTD_SHOWN="pam"
declare -x OLDPWD
declare -x PAGER="/usr/bin/less"
declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin:/home/serg//.local/bin"
declare -x PWD="/home/serg/"
declare -x QT_IM_MODULE="ibus"
declare -x ROOTPATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin"
declare -x SESSION_MANAGER="local/gentoo-pc:@/tmp/.ICE-unix/995,unix/gentoo-pc:/tmp/.ICE-unix/995"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_AGENT_PID="938"
declare -x SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"
declare -x SYSTEMD_EXEC_PID="1197"
declare -x TERM="xterm-256color"
declare -x USER="serg"
declare -x USERNAME="serg"
declare -x VBOX_APP_HOME="/usr/lib64/virtualbox"
declare -x VISUAL="vi"
declare -x VTE_VERSION="6800"
declare -x WINDOWPATH="2"
declare -x XAUTHORITY="/run/user/1000/gdm/Xauthority"
declare -x XDG_CONFIG_DIRS="/etc/xdg"
declare -x XDG_CURRENT_DESKTOP="GNOME"
declare -x XDG_DATA_DIRS="/home/serg//.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/usr/share/gdm"
declare -x XDG_MENU_PREFIX="gnome-"
declare -x XDG_RUNTIME_DIR="/run/user/1000"
declare -x XDG_SESSION_CLASS="user"
declare -x XDG_SESSION_DESKTOP="gnome-xorg"
declare -x XDG_SESSION_TYPE="x11"
declare -x XMODIFIERS="@im=ibus"


Thx
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Wed Jul 13, 2022 6:03 pm    Post subject: Reply with quote

Quote:
But now am just curios... Why on Arch it works fine with xterm-256color on both terminal (mate and gnome)?

Have you ever wondered about the name of the package 'ncurses'? Rumors say it's because it gives users so many problems that they curse all the time. :D

That's a joke, of course. But there is an element of truth there...

I can't tell you why that happens. Something must be different.

It seems that cmus works if you call it with:
Code:
TERM=linux cmus

Don't think about it. Just start it that way...
Back to top
View user's profile Send private message
Elserjo
n00b
n00b


Joined: 06 Jul 2021
Posts: 60

PostPosted: Wed Jul 13, 2022 6:09 pm    Post subject: Reply with quote

mike155 wrote:
Quote:
But now am just curios... Why on Arch it works fine with xterm-256color on both terminal (mate and gnome)?

Have you ever wondered about the name of the package 'ncurses'? Rumors say it's because it gives users so many problems that they curse all the time. :D

That's a joke, of course. But there is an element of truth there...

I can't tell you why that happens. Something must be different.

It seems that cmus works if you call it with:
Code:
TERM=linux cmus

Don't think about it. Just start it that way...


I will do.
Anyway, thank u for your feedback. And joke :lol:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum