gnunn1 / tilix

A tiling terminal emulator for Linux using GTK+ 3
https://gnunn1.github.io/tilix-web
Mozilla Public License 2.0
5.39k stars 294 forks source link

Strange chars in tilix with outbound ssh #1376

Open longsleep opened 6 years ago

longsleep commented 6 years ago

kssh:root@pi3\root@pi3's password:

So around the first user@host some binary char is show (Ubuntu 18.04, tilix 1.7.7, Fira for Powerline Regular Font).

Any hint? Works fine with gnome-terminal.

gnunn1 commented 6 years ago

If you switch to non-powerline font does it work? tilix uses the same VTE widget as gnome-terminal so I'm not seeing a reason for the issue assuming both are configured the same. In gnome-terminal, if you run tilix directly using tilix do you see the same issue?

longsleep commented 6 years ago

If you switch to non-powerline font does it work? Nope - i see the issue with non-powerline fonts too (for example with Ubuntu Mono regular).

tilix uses the same VTE widget as gnome-terminal so I'm not seeing a reason for the issue assuming both are configured the same. In gnome-terminal, if you run tilix directly using tilix do you see the same issue? Yes - see the attached screenshot. The tilix above was spawned from the gnome-terminal below. image

I also have tested with bash instead of zsh, but same issue there.

I guess the problem is related to whatever piece of software adds the ssh:.. prefix to the output in tilix - though i have no clue where this comes from.

gnunn1 commented 6 years ago

I'm not sure what the issue is here, it strikes me as weird. The only thing I could think of is a difference in environment variables. Tilix starts using DBus activation and thus doesn't get all the same variables that gnome-terminal does. Other then that I'm not seeing why this could be occurring since both use the same underlying VTE widget.

gnunn1 commented 6 years ago

I'm not sure where that is coming from, any chance you are trying to use the shell integration script tilix provides on the remote system:

https://github.com/gnunn1/tilix/blob/master/data/scripts/tilix_int.sh

Also do you have any triggers in tilix configured that may output something?

longsleep commented 6 years ago

Thanks for looking into it. Nope the remote system does not have tilix. Also i am wondering how that would be possible, since it happens before the actual login (just the ssh password prompt).

I am not aware of any special configuration (nothing special done manuall).

In the meanwhile i have also installed tilix on my other laptop with Ubuntu 16.04 and i can reproduce the exact same issue there as well (very similar settings).

image image

Environment in tilix:

 ~  export
CLUTTER_IM_MODULE=xim
COMPIZ_CONFIG_PROFILE=ubuntu
DBUS_DEBUG_OUTPUT=1
DBUS_SESSION_BUS_ADDRESS='unix:abstract=/tmp/dbus-l7kW2wpb7A,guid=7d49ca8fbc2969f0a25934105adee3e2'
DBUS_STARTER_ADDRESS='unix:abstract=/tmp/dbus-l7kW2wpb7A,guid=7d49ca8fbc2969f0a25934105adee3e2'
DBUS_STARTER_BUS_TYPE=session
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
DESKTOP_SESSION=ubuntu
DISPLAY=:0
EDITOR=vim
GDMSESSION=ubuntu
GDM_LANG=en_US
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_KEYRING_CONTROL=/run/user/1000/keyring
GNOME_KEYRING_PID=''
GPG_AGENT_INFO=/home/longsleep/.gnupg/S.gpg-agent:0:1
GTK2_MODULES=overlay-scrollbar
GTK_IM_MODULE=ibus
GTK_MODULES=gail:atk-bridge:unity-gtk-module
HOME=/home/longsleep
IM_CONFIG_PHASE=1
INSTANCE=''
JOB=xsession-init
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_ADDRESS=de_DE.UTF-8
LC_CTYPE=en_US.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LESS=-R
LOGNAME=longsleep
LSCOLORS=Gxfxcxdxbxegedabagacad
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=40;31;01:mi=00: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:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=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:*.jpg=01;35:*.jpeg=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:*.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:*.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:'
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
NVM_DIR=/home/longsleep/.nvm
PAGER=less
PATH=/home/longsleep/bin:/home/longsleep/.local/bin:/home/longsleep/bin:/home/longsleep/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=/home/longsleep
QT4_IM_MODULE=xim
QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
QT_QPA_PLATFORMTHEME=appmenu-qt5
SESSIONTYPE=gnome-session
SESSION_MANAGER=local/mose4:@/tmp/.ICE-unix/4782,unix/mose4:/tmp/.ICE-unix/4782
SHELL=/usr/bin/zsh
SHLVL=1
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TERM=xterm-256color
TILIX_ID=6c9cd6a2-14f6-4620-9819-30bb483a1b6a
UNITY_DEFAULT_PROFILE=unity
UNITY_HAS_3D_SUPPORT=true
UPSTART_EVENTS=starting
UPSTART_INSTANCE=''
UPSTART_JOB=dbus
UPSTART_SESSION='unix:abstract=/com/ubuntu/upstart-session/1000/4556'
USER=longsleep
VIRTUAL_ENV_DISABLE_PROMPT=1
VTE_VERSION=4205
XAUTHORITY=/home/longsleep/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
XDG_CURRENT_DESKTOP=Unity
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/home/longsleep/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/var/lib/snapd/desktop
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/longsleep
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_ID=c2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7
XMODIFIERS=@im
ZEITGEIST_DATA_PATH=/home/longsleep/.local/share/zeitgeist
ZSH=/home/longsleep/.oh-my-zsh

Environment in gnome-terminal

CLUTTER_IM_MODULE=xim
COMPIZ_CONFIG_PROFILE=ubuntu
DBUS_SESSION_BUS_ADDRESS='unix:abstract=/tmp/dbus-l7kW2wpb7A'
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
DESKTOP_SESSION=ubuntu
DISPLAY=:0
EDITOR=vim
GDMSESSION=ubuntu
GDM_LANG=en_US
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_KEYRING_CONTROL=/run/user/1000/keyring
GNOME_KEYRING_PID=''
GPG_AGENT_INFO=/home/longsleep/.gnupg/S.gpg-agent:0:1
GTK2_MODULES=overlay-scrollbar
GTK_IM_MODULE=ibus
GTK_MODULES=gail:atk-bridge:unity-gtk-module
HOME=/home/longsleep
IM_CONFIG_PHASE=1
INSTANCE=Unity
JOB=gnome-session
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_ADDRESS=de_DE.UTF-8
LC_CTYPE=en_US.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LESS=-R
LOGNAME=longsleep
LSCOLORS=Gxfxcxdxbxegedabagacad
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=40;31;01:mi=00: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:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=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:*.jpg=01;35:*.jpeg=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:*.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:*.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:'
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
NVM_DIR=/home/longsleep/.nvm
PAGER=less
PATH=/home/longsleep/bin:/home/longsleep/.local/bin:/home/longsleep/bin:/home/longsleep/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=/home/longsleep
QT4_IM_MODULE=xim
QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
QT_QPA_PLATFORMTHEME=appmenu-qt5
SESSIONTYPE=gnome-session
SHELL=/bin/zsh
SHLVL=1
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TERM=screen-256color
TMUX=/tmp/tmux-1000/default,6362,4
TMUX_PANE=%7
UPSTART_EVENTS='started starting'
UPSTART_INSTANCE=''
UPSTART_JOB=unity-settings-daemon
UPSTART_SESSION='unix:abstract=/com/ubuntu/upstart-session/1000/4556'
USER=longsleep
VIRTUAL_ENV_DISABLE_PROMPT=1
VTE_VERSION=4205
WINDOWID=92277286
XAUTHORITY=/home/longsleep/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
XDG_CURRENT_DESKTOP=Unity
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/home/longsleep/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/var/lib/snapd/desktop
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/longsleep
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_ID=c2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7
XMODIFIERS='@im=ibus'
ZSH=/home/longsleep/.oh-my-zsh
gnunn1 commented 6 years ago

Do you see any difference if you use bash?

longsleep commented 6 years ago

Do you see any difference if you use bash?

Afraid not - same issue with bash (also had checked before earlier).

gnunn1 commented 6 years ago

Grasping at straws here a bit, is there any difference in how tilix is configured versus gnome-terminal in the profile you are using with respect to enabling the login shell?

Are you using utf-8 in both gnome-terminal and tilix?

longsleep commented 6 years ago

Are you using utf-8 in both gnome-terminal and tilix?

Yes both use UTF-8. Also i have no idea what could cause this. No big deal if i am the only one with the issue though :)