From owner-freebsd-questions@FreeBSD.ORG Sat Jul 9 06:57:35 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 62554106566B for ; Sat, 9 Jul 2011 06:57:35 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2C4698FC08 for ; Sat, 9 Jul 2011 06:57:34 +0000 (UTC) Received: by iwr19 with SMTP id 19so3043268iwr.13 for ; Fri, 08 Jul 2011 23:57:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=V6X/2RLg9wGWMRc3jEdV9hDV73JDGBfzZcMO0BARzWw=; b=Ie0xtluYhr75CubotIa0ioaasX4o/NVwExFBrMEkTCcNGknW4TDpjIITwudp/4/ufD +vCdFwF+TpCuCpAvkvKe/+/abVnguBV7jURW0SpI5sCbeJulPk3A11sKOH05iAo4ju6J zNHeKZ8kFfRYTNqqll2/cnreoSoiocVowImnI= Received: by 10.42.19.69 with SMTP id a5mr2717984icb.69.1310194653949; Fri, 08 Jul 2011 23:57:33 -0700 (PDT) Received: from [192.168.1.9] (c-98-212-201-29.hsd1.il.comcast.net [98.212.201.29]) by mx.google.com with ESMTPS id m18sm2458286ibc.28.2011.07.08.23.57.32 (version=SSLv3 cipher=OTHER); Fri, 08 Jul 2011 23:57:33 -0700 (PDT) Message-ID: <4E17FBDD.6050008@gmail.com> Date: Sat, 09 Jul 2011 01:57:33 -0500 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 06:57:35 -0000 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.