FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 06-05-2008, 06:38 AM
Can-Hua Chen
 
Default problem: GNU Screen within gnome-terminal

I am using GNU Screen within gnome-terminal on
a lenny box. And mutt and aptitude are messed up in
within Screen. I suppose it is due to a wrong $TERMCAP,
so I try using termcap/info commands in ~/.screenrc to
change $TERMCAP. However those termcap/info commands
in .screenrc just don't change $TERMCAP at all.
I try termcap and terminfo and even termcapinfo commands,
none of them works.

Below is the $TERMCAP after I go into Screen without and with
termcap/info commands:
SC|screen|VT 100/ANSI X3.64 virtual terminal:
O=E[%dB:LE=E[%dD:RI=E[%dC:UP=E[%dA:bs:bt=E[Z:
:cd=E[J:ce=E[K:cl=E[HE[J:cm=E[%i%d;%dH:ct=E[3g:
:do=^J:nd=E[Ct:rc=E8:rs=Ec:sc=E7:st=EH:up=EM:
:le=^H:bl=^G:cr=^M:it#8:ho=E[H:nw=EE:ta=^I:is=E)0:
:li#24:co#80:am:xn:xv:LP:sr=EM:al=E[L:AL=E[%dL:
:cs=E[%i%d;%dr:dl=E[ML=E[%dM:dc=E[PC=E[%dP:
:im=E[4h:ei=E[4l:mi:IC=E[%d@:ks=E[?1hE=:
:ke=E[?1lE>:vi=E[?25l:ve=E[34hE[?25h:vs=E[34l:
:ti=E[?1049h:te=E[?1049l:us=E[4m:ue=E[24m:so=E[3m:
:se=E[23m:mb=E[5m:md=E[1m:mr=E[7m:me=E[m:ms:
:Co#8a#64:AF=E[3%dm:AB=E[4%dmp=E[39;49m:AX:
:vb=Eg:G0:as=E(0:ae=E(B:
:ac=140140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz {{||}}~~..--++,,hhII00:
o=E[5if=E[4i:k0=E[10~:k1=EOP:k2=EOQ:k3=EOR:
:k4=EOS:k5=E[15~:k6=E[17~:k7=E[18~:k8=E[19~:
:k9=E[20~:k;=E[21~:F1=E[23~:F2=E[24~:F3=EO2P:
:F4=EO2Q:F5=EO2R:F6=EO2S:F7=E[15;2~:F8=E[17;2~:
:F9=E[18;2~:FA=E[19;2~:kb=:K2=EOE:kB=E[Z:
:*4=E[3;2~:*7=E[1;2F:#2=E[1;2H:#3=E[2;2~:#4=E[1;2D:
:%c=E[6;2~:%e=E[5;2~:%i=E[1;2C:kh=E[1~:@1=E[1~:
:kH=E[4~:@7=E[4~:kN=E[6~:kP=E[5~:kI=E[2~:kD=E[3~:
:ku=EOA:kd=EOB:kr=EOC:kl=EOD:km:


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-10-2008, 09:21 AM
Canhua Chen
 
Default problem: GNU Screen within gnome-terminal

Today I find that my problem is probably related
to the LC_CTYPE that I set as zh_CN.UTF-8.
When I set it as "C", the aptitude and mutt doesn't
show messed or corupted display any more.

Now I am still wondering how to have GNU Screen
work well with mutt and aptitude or any program
using termcap/info under LC_CTPE=zh_CN.UTF-8.

Hope someone could help me. Thank you.

On Thu, Jun 05, 2008 at 02:38:31PM +0800, Can-Hua Chen wrote:
> I am using GNU Screen within gnome-terminal on
> a lenny box. And mutt and aptitude are messed up in
> within Screen. I suppose it is due to a wrong $TERMCAP,
> so I try using termcap/info commands in ~/.screenrc to
> change $TERMCAP. However those termcap/info commands
> in .screenrc just don't change $TERMCAP at all.
> I try termcap and terminfo and even termcapinfo commands,
> none of them works.
>
> Below is the $TERMCAP after I go into Screen without and with
> termcap/info commands:
> SC|screen|VT 100/ANSI X3.64 virtual terminal:
> O=E[%dB:LE=E[%dD:RI=E[%dC:UP=E[%dA:bs:bt=E[Z:
> :cd=E[J:ce=E[K:cl=E[HE[J:cm=E[%i%d;%dH:ct=E[3g:
> :do=^J:nd=E[Ct:rc=E8:rs=Ec:sc=E7:st=EH:up=EM:
> :le=^H:bl=^G:cr=^M:it#8:ho=E[H:nw=EE:ta=^I:is=E)0:
> :li#24:co#80:am:xn:xv:LP:sr=EM:al=E[L:AL=E[%dL:
> :cs=E[%i%d;%dr:dl=E[ML=E[%dM:dc=E[PC=E[%dP:
> :im=E[4h:ei=E[4l:mi:IC=E[%d@:ks=E[?1hE=:
> :ke=E[?1lE>:vi=E[?25l:ve=E[34hE[?25h:vs=E[34l:
> :ti=E[?1049h:te=E[?1049l:us=E[4m:ue=E[24m:so=E[3m:
> :se=E[23m:mb=E[5m:md=E[1m:mr=E[7m:me=E[m:ms:
> :Co#8a#64:AF=E[3%dm:AB=E[4%dmp=E[39;49m:AX:
> :vb=Eg:G0:as=E(0:ae=E(B:
> :ac=140140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz {{||}}~~..--++,,hhII00:
> o=E[5if=E[4i:k0=E[10~:k1=EOP:k2=EOQ:k3=EOR:
> :k4=EOS:k5=E[15~:k6=E[17~:k7=E[18~:k8=E[19~:
> :k9=E[20~:k;=E[21~:F1=E[23~:F2=E[24~:F3=EO2P:
> :F4=EO2Q:F5=EO2R:F6=EO2S:F7=E[15;2~:F8=E[17;2~:
> :F9=E[18;2~:FA=E[19;2~:kb=:K2=EOE:kB=E[Z:
> :*4=E[3;2~:*7=E[1;2F:#2=E[1;2H:#3=E[2;2~:#4=E[1;2D:
> :%c=E[6;2~:%e=E[5;2~:%i=E[1;2C:kh=E[1~:@1=E[1~:
> :kH=E[4~:@7=E[4~:kN=E[6~:kP=E[5~:kI=E[2~:kD=E[3~:
> :ku=EOA:kd=EOB:kr=EOC:kl=EOD:km:
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-10-2008, 02:10 PM
Daniel Burrows
 
Default problem: GNU Screen within gnome-terminal

On Tue, Jun 10, 2008 at 05:21:21PM +0800, Canhua Chen <chencanhua@fudan.edu.cn> was heard to say:
> Today I find that my problem is probably related
> to the LC_CTYPE that I set as zh_CN.UTF-8.
> When I set it as "C", the aptitude and mutt doesn't
> show messed or corupted display any more.
>
> Now I am still wondering how to have GNU Screen
> work well with mutt and aptitude or any program
> using termcap/info under LC_CTPE=zh_CN.UTF-8.

I can use zh_CN.UTF-8 in screen; at least, aptitude looks no worse
than in a normal terminal (I think I'm missing some Chinese fonts). But
if I run screen itself in a non-UTF-8 locale, it gets all messed up.
Maybe you're doing something like that by accident?

Daniel


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-11-2008, 03:27 AM
Canhua Chen
 
Default problem: GNU Screen within gnome-terminal

On Tue, Jun 10, 2008 at 08:13:42PM -0700, Daniel Burrows wrote:
> On Wed, Jun 11, 2008 at 10:29:36AM +0800, Canhua Chen <chencanhua@fudan.edu.cn> was heard to say:
> > On Tue, Jun 10, 2008 at 07:10:29AM -0700, Daniel Burrows wrote:
> > > On Tue, Jun 10, 2008 at 05:21:21PM +0800, Canhua Chen <chencanhua@fudan.edu.cn> was heard to say:
> > > > Today I find that my problem is probably related
> > > > to the LC_CTYPE that I set as zh_CN.UTF-8.
> > > > When I set it as "C", the aptitude and mutt doesn't
> > > > show messed or corupted display any more.
> > > >
> > > > Now I am still wondering how to have GNU Screen
> > > > work well with mutt and aptitude or any program
> > > > using termcap/info under LC_CTPE=zh_CN.UTF-8.
> > >
> > > I can use zh_CN.UTF-8 in screen; at least, aptitude looks no worse
> > > than in a normal terminal (I think I'm missing some Chinese fonts). But
> > > if I run screen itself in a non-UTF-8 locale, it gets all messed up.
> > > Maybe you're doing something like that by accident?
> > >
> > which terminal do you use? and what version of Debian?
> > I use gnome-terminal on lenny.
> > I suppose it is related to wide character library of ncurses.
>
> I use xterm on sid, but I get the same behavior with gnome-terminal.
>
> Does aptitude work when you run it outside screen?
>
> What if you do
>
> LC_CTYPE=zh_CN.UTF-8 screen
>
> and run aptitude from there in zh_CN.UTF-8?

yes, it works on gnome-terminal outside Screen.

My Locale has been always setting LC_CTYPE=zh_CN.UTF-8,
and I do invoke screen under this Locale.
But it fails for aptitude to work.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-11-2008, 04:35 AM
lestat V
 
Default problem: GNU Screen within gnome-terminal

On Tue, Jun 10, 2008 at 10:42:52PM -0400, Andy Harrison wrote:
> On Tue, Jun 10, 2008 at 3:17 AM, Can-Hua Chen <chencanhua@fudan.edu.cn> wrote:
> > Today I find that my problem is probably related
> > to the LC_CTYPE that I set as zh_CN.UTF-8.
> > When I set it as "C", the aptitude and mutt doesn't
> > show messed or corupted display any more.
> >
> > Now I am still wondering how to have GNU Screen
> > work well with mutt and aptitude or any program
> > using termcap/info under LC_CTPE=zh_CN.UTF-8.
> >
> > Hope someone could help me. Thank you.
>
> The vast majority of my problems with screen and termcap issues went
> away when I finally put this into my .tcshrc file...
>
>
> if ($term == "screen") then
> unsetenv TERMCAP
> endif
>
> Reproduce that in your preferred shell and see if that helps.
>
I tried, and failed ;(
>
> _______________________________________________
> screen-users mailing list
> screen-users@gnu.org
> http://lists.gnu.org/mailman/listinfo/screen-users


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-12-2008, 02:00 AM
Canhua Chen
 
Default problem: GNU Screen within gnome-terminal

On Wed, Jun 11, 2008 at 12:54:52PM +0200, Goran K. wrote:
> On 6/10/08, Can-Hua Chen <chencanhua@fudan.edu.cn> wrote:
>
> Hi.
>
> > Today I find that my problem is probably related
> > to the LC_CTYPE that I set as zh_CN.UTF-8.
> > When I set it as "C", the aptitude and mutt doesn't
> > show messed or corupted display any more.
> >
> > Now I am still wondering how to have GNU Screen
> > work well with mutt and aptitude or any program
> > using termcap/info under LC_CTPE=zh_CN.UTF-8.
>
> I am using en_US.UTF-8 and it's showing up fine. Did you try
> using newer version of screen like I suggested?
I tried use version 4.0.3-10 of Debian sid,
and it works almost very perfect, thank you,
except a little bit messed up very occassionally
which may be corrected by typing C-L.

So for any other's convinient reference, may I
conclude that GNU screen of version 4.0.3-9 on
Debian Lenny messes up ncursesed applications
when invoked within terminal that use LC_CTYPE=zh_CN.UTF-8;
while version 4.0.3-10 on Debian Sid solve this
problem almostly.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-12-2008, 02:04 AM
Canhua Chen
 
Default problem: GNU Screen within gnome-terminal

On Thu, Jun 12, 2008 at 10:00:40AM +0800, Canhua Chen wrote:
> On Wed, Jun 11, 2008 at 12:54:52PM +0200, Goran K. wrote:
> > On 6/10/08, Can-Hua Chen <chencanhua@fudan.edu.cn> wrote:
> >
> > Hi.
> >
> > > Today I find that my problem is probably related
> > > to the LC_CTYPE that I set as zh_CN.UTF-8.
> > > When I set it as "C", the aptitude and mutt doesn't
> > > show messed or corupted display any more.
> > >
> > > Now I am still wondering how to have GNU Screen
> > > work well with mutt and aptitude or any program
> > > using termcap/info under LC_CTPE=zh_CN.UTF-8.
> >
> > I am using en_US.UTF-8 and it's showing up fine. Did you try
> > using newer version of screen like I suggested?
> >
> I tried use version 4.0.3-10 of Debian sid,
> and it works almost very perfect, thank you,
> except a little bit messed up very occassionally
> which may be corrected by typing C-L.
>
> So for any other's convinient reference, may I
> conclude that GNU screen of version 4.0.3-9 on
> Debian Lenny messes up ncursesed applications
> when invoked within terminal that use LC_CTYPE=zh_CN.UTF-8;
> while version 4.0.3-10 on Debian Sid solve this
> problem almostly.
>
I found that with 4.0.3-10 the screen is messed up when
there are Russian characters in mutt, although this version
does solve the messing-up problem with chinese utf-8 characters.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-12-2008, 09:23 AM
Vladimir Marek
 
Default problem: GNU Screen within gnome-terminal

[...]

> I found that with 4.0.3-10 the screen is messed up when
> there are Russian characters in mutt, although this version
> does solve the messing-up problem with chinese utf-8 characters.

I'm not sure if it's related, but screen can't handle utf-8 which is
encoded in more than two bytes.

--
Vlad
 

Thread Tools




All times are GMT. The time now is 04:02 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org