PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > how get colour mutt when ssh from OBSD?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

how get colour mutt when ssh from OBSD?

Réponse
 
LinkBack Outils de la discussion
Vieux 10/09/2007, 01h10   #1
Douglas A. Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut how get colour mutt when ssh from OBSD?

Hello,

I have a box that runs OpenBSD that sshes into my Debian box. On
OpenBSD, the default colour term is vt220 so when I ssh to debian, TERM
is set to vt220.

When I run mc, all is well; colour, line draw, whatever.

When I run lynx or mutt, I get black on white with no colour. On Lynx
this means that my blue on gray ends up as white on black; with mutt I
don't get the blue top and bottom lines or the red thread lines.

If I ssh in from an xterm, with TERM=xterm, everything is fine.

Does anyone have any clues on this?

Thanks,

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 13/09/2007, 02h00   #2
Thomas Dickey
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how get colour mutt when ssh from OBSD?

Douglas A. Tutty <dtutty@porchlight.ca> wrote:
> Hello,


> I have a box that runs OpenBSD that sshes into my Debian box. On
> OpenBSD, the default colour term is vt220 so when I ssh to debian, TERM
> is set to vt220.


vt220's don't do color.

OpenBSD console is normally set to make $TERM to "vt200", which is twice
a bug since it doesn't emulate vt220 either (except if one considers that
a subset of a vt100 is again a subset of a vt220).

> When I run mc, all is well; colour, line draw, whatever.


That's a different bug ;-)

> When I run lynx or mutt, I get black on white with no colour. On Lynx
> this means that my blue on gray ends up as white on black; with mutt I
> don't get the blue top and bottom lines or the red thread lines.


That's normal...

> If I ssh in from an xterm, with TERM=xterm, everything is fine.


That's because Debian's "xterm" entry is set to correspond to xterm,
which does color.

> Does anyone have any clues on this?


Conventional applications (excluding hardcoded stuff like GNU ls)
uses terminfo/termcap data to determine what the terminal can do.
You should report a bug in the applications that don't.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 16/09/2007, 04h10   #3
Douglas A. Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how get colour mutt when ssh from OBSD?

On Thu, Sep 13, 2007 at 12:39:03AM -0000, Thomas Dickey wrote:
> Douglas A. Tutty <dtutty@porchlight.ca> wrote:
>
> > I have a box that runs OpenBSD that sshes into my Debian box. On
> > OpenBSD, the default colour term is vt220 so when I ssh to debian, TERM
> > is set to vt220.

>
> vt220's don't do color.
>
> OpenBSD console is normally set to make $TERM to "vt200", which is twice
> a bug since it doesn't emulate vt220 either (except if one considers that
> a subset of a vt100 is again a subset of a vt220).
>


> > When I run lynx or mutt, I get black on white with no colour. On Lynx
> > this means that my blue on gray ends up as white on black; with mutt I
> > don't get the blue top and bottom lines or the red thread lines.

>
> That's normal...
>


> > Does anyone have any clues on this?

>
> Conventional applications (excluding hardcoded stuff like GNU ls)
> uses terminfo/termcap data to determine what the terminal can do.
> You should report a bug in the applications that don't.


Thanks.

I solved this problem by finding a TERM common to both that does colour.
TERM=screen works just fine.

Thanks.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 16/09/2007, 17h40   #4
Wayne Topa
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how get colour mutt when ssh from OBSD?

Douglas A. Tutty(dtutty@porchlight.ca) is reported to have said:
> On Thu, Sep 13, 2007 at 12:39:03AM -0000, Thomas Dickey wrote:
> > Douglas A. Tutty <dtutty@porchlight.ca> wrote:
> >
> > > I have a box that runs OpenBSD that sshes into my Debian box. On
> > > OpenBSD, the default colour term is vt220 so when I ssh to debian, TERM
> > > is set to vt220.

> >
> > vt220's don't do color.
> >
> > OpenBSD console is normally set to make $TERM to "vt200", which is twice
> > a bug since it doesn't emulate vt220 either (except if one considers that
> > a subset of a vt100 is again a subset of a vt220).
> >

>
> > > When I run lynx or mutt, I get black on white with no colour. On Lynx
> > > this means that my blue on gray ends up as white on black; with mutt I
> > > don't get the blue top and bottom lines or the red thread lines.

> >
> > That's normal...
> >

>
> > > Does anyone have any clues on this?

> >
> > Conventional applications (excluding hardcoded stuff like GNU ls)
> > uses terminfo/termcap data to determine what the terminal can do.
> > You should report a bug in the applications that don't.

>
> Thanks.
>
> I solved this problem by finding a TERM common to both that does colour.
> TERM=screen works just fine.


Thanks to your perseverance, I have found the answer to a question I
have had for a few weeks.

Every ssh login to debian boxen on my lan has been printing the line
"setterm: $TERM is not defined". It seems that, a long time ago, I
had set TERM="linux" in my .bash_profile based on something I had
read. I tried other setterm options, but never found a solution
to the "$TERM is not defined", until now.

One more unknown uncovered Douglas, thanks to your efforts. I am,
yet again, indebted to you.

Wayne

--
I have a dream: 1073741824 bytes free.
__________________________________________________ _____


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h20.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,15843 seconds with 12 queries