From owner-freebsd-questions@FreeBSD.ORG Sat Jul 9 16:05:19 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BABF106566C for ; Sat, 9 Jul 2011 16:05:19 +0000 (UTC) (envelope-from david.krauser@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 498D78FC08 for ; Sat, 9 Jul 2011 16:05:19 +0000 (UTC) Received: by ywf7 with SMTP id 7so1363094ywf.13 for ; Sat, 09 Jul 2011 09:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:x-x-sender:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version:content-type; bh=FLKWKV+wRp2gvYP/KK5B4vDsbTJHoyqJ+0+67dnAUDY=; b=UPLVlzSk/XXV+7o7k3VY1BHFpoqu5JiWHaqZMFCNC2M1Qn9QWz+rgGX086pX42gUFM gmiO6RmR4YgjiEgw8JcChpxPsKMKKlNjS4agh0y4NWZQ4oSZ22ORnP9Uq/uk+NYcD3rs KP2cyOE4Ncapt4BDbcMOoQyG2DcbbIbwew1mc= Received: by 10.236.183.194 with SMTP id q42mr3793450yhm.43.1310227517985; Sat, 09 Jul 2011 09:05:17 -0700 (PDT) Received: from devio.us (devio.us [66.7.199.108]) by mx.google.com with ESMTPS id j65sm5417827yhm.68.2011.07.09.09.05.17 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 09 Jul 2011 09:05:17 -0700 (PDT) Date: Sat, 9 Jul 2011 12:05:02 -0400 (EDT) From: David Krauser X-X-Sender: davidkrauser@wolfman.devio.us To: Joshua Isom In-Reply-To: <4E17FBDD.6050008@gmail.com> Message-ID: References: <4E17FBDD.6050008@gmail.com> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Color Spills Over From SSH Session X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jul 2011 16:05:19 -0000 I echoed $TERM on both boxes, and they are both cons25. I figured out, though, that I'm only seeing the color spillover issue when I run GNU Screen on the remote box (which is OpenBSD). GNU Screen is not installed on the FreeBSD box. How can I get screen's colors to work in my FreeBSD ssh sessions? I can connect to the remote box from other computers (using putty, xterm, linux console, etc.) without issue. Maybe I need to have screen installed in FreeBSD? On Sat, 9 Jul 2011, Joshua Isom wrote: > On 7/8/2011 11:07 PM, David Krauser wrote: >> >> Hello everybody, >> >> I've tried to setup a kind of 'dedicated ssh client' using FreeBSD, and >> I'm having some issues with the terminal colors. >> >> I have a basic install of FreeBSD 8.2-RELEASE (I only had kernel-dev >> packages checked at installation) and I rebuilt the GENERIC kernel with >> the VESA and SC_PIXEL_MODE options enabled (for a high resolution >> terminal). >> >> Now here's the problem: when I ssh into another box and issue a command >> with colors (like vim's syntax hilighting or a colored ls) the primary >> color of the terminal will change. I'm often left with a crazy colored >> and hard to read bash prompt (all in the ssh session). When I exit the >> session back to FreeBSD, the colors persist. I have to use the command >> 'reset' to fix the issue. >> >> I believe my primary FreeBSD shell is csh (it's whatever the default is >> in FreeBSD) and I'm not sure if it can handle colors or if it has them >> enabled. I generally ssh into a bash shell. >> >> I'm really a newcomer with FreeBSD, and any help would be greatly >> appreciated. >> >> Thanks a bunch, >> >> David Krauser >> david.krauser@gmail.com > > > Are you sshing from the console or an xterm? If it's from the console, it > should be cons25, and if it's from an xterm it should be xterm or > xterm-color. You might have the .cshrc on the other box forcing it to > something that it's not. On the FreeBSD box, run `echo $TERM` and note what > it says, then ssh into the other box and run it again. They're probably > different. > > It's probably not the FreeBSD box, but the other box doesn't know what you're > using. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >