Overview of UTF8 screen re-attachment issues.
Creating a screen that uses UTF8 works perfectly until re-attaching said screen session.
ssh remothost screen -U -S ttytter [detach screen] [exit ssh] xterm -class 'xterm-ttytter' -geometry 175x20 \ -title 'ttytter' -e ssh -t remotehost "screen -dU -r ttytter"
I am a really big fan of ttytter and have been using it for some time now. I have recently started using xterm vs xfce4-terminal/gnome-terminal as I find it is much cleaner. I am trying to use UTF8 for personal and professional reasons and I am still trying to work out a few bugs.
The initial attachment (creation) gives me UTF8 input that works like it should. $TERM is xterm-256colors while $LANG is en_US.UTF-8. This is also true once I re-attach the screen, although I am unable to use certain characters, such as backspace, which shows up as ^H.
It seems that the issue is specific to the command I am issuing to re-attach the screen. I am trying to figure out what it is that could be causing such an issue when I re-attach my UTF8 screen. I have tried -dr and -dU -r, both of which are failing to solve my problem. I have tried giving xterm the -u8 flag, giving me no change in behavior.
xterm -class 'xterm-ttytter' -geometry 175x20 \ -title 'ttytter' -e ssh -t remotehost "screen -dU -r ttytter"
The above causes problems.
ssh remotehost screen -dU -r ttytter
The above works just fine.
defc1 off defutf8 on utf8 on
I will really appreciate any guidance on solving this issue.