From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: DeeplyPipelined Newsgroups: gmane.emacs.help Subject: Re: no color syntax highlighting in emacs over SSH Date: Fri, 29 Sep 2006 11:48:26 -0700 (PDT) Message-ID: <6570659.post@talk.nabble.com> References: <6559904.post@talk.nabble.com> <6566875.post@talk.nabble.com> <877izmy8pu.fsf@lion.rapttech.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1159565038 1324 80.91.229.2 (29 Sep 2006 21:23:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Sep 2006 21:23:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 29 23:23:53 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GTPpm-00075G-Ao for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Sep 2006 23:23:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GTPpl-000061-PF for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Sep 2006 17:23:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GTNPR-0000qM-3r for help-gnu-emacs@gnu.org; Fri, 29 Sep 2006 14:48:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GTNPQ-0000pq-8y for Help-gnu-emacs@gnu.org; Fri, 29 Sep 2006 14:48:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GTNPQ-0000pm-4C for Help-gnu-emacs@gnu.org; Fri, 29 Sep 2006 14:48:28 -0400 Original-Received: from [72.21.53.35] (helo=talk.nabble.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GTNUm-0005vi-FT for Help-gnu-emacs@gnu.org; Fri, 29 Sep 2006 14:54:00 -0400 Original-Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GTNPO-0004bZ-6v for Help-gnu-emacs@gnu.org; Fri, 29 Sep 2006 11:48:26 -0700 Original-To: Help-gnu-emacs@gnu.org In-Reply-To: <877izmy8pu.fsf@lion.rapttech.com.au> X-Nabble-From: ajitkarthik@gmail.com X-Mailman-Approved-At: Fri, 29 Sep 2006 17:22:53 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37721 Archived-At: The TERM setting on the remote machine (Sun box) is set to xterm. You are right in assuming that I am doing an ssh to a remote Sun box and then running emacs. Also, how do I find out more about termcap/terminfo entries on the Solaris box? (I dont know much about termcap/terminfo). Tim X-2 wrote: > > DeeplyPipelined writes: > >> I am editing some .c files over an SSH connection. Syntax highlighting >> is working fine when I have the files on my local machine. >> >> If am using emacs on the TTY (as opposed to emacs in an X window), the >> problem is >> that I cant get syntax highlighting to work for files over an SSH >> connection. I know that font-lock-mode is on because I see bold fonts >> and underlined fonts in the TTY over an SSH connection, but there is >> no color. >> >> The shell on the remote machine is a tcsh. >> >> I should also mention that when I use emacs over X on the SSH, syntax >> highlighting works. It stops working in TTY mode over SSH. The remote >> machine has emacs 21.2.2 on a SunSPARC Solaris 2.8. >> >> Any help regarding this will be greatly appreciated! >> > > I'm assuming you are doing an ssh to the remote Sun box and then > running emacs, rather than accessing remote iles using something like > tramp or ange-ftp. > > Check to see what TERM setting the remote emacs believes it is running > under. I suspect the most likely cause is that the remote emacs > doesn't realise it is running under a terminal which can support > colour. If this is the case, you will have to see if there is a > suitable colour capable termcap/terminfo setting which is compatible > with the tty. I have seen this problem when users are running on Linux > and connect to a commercial Unix system like solaris or Tru64, which > doesn't have termcap/terminfo entries for terminals of type Linux or > Console (as used in Linux). > > If you can find a suitable termcap/terminfo entry on the solaris box, > you may need to set your TERM variable explicitly when you login to > force it to use that entry. > > Alternatively, use tramp from a local instance of emacs - you will get > colour syntax highlighting and probably better responsiveness > (assuming thats why your running under a console rather than X). > > HTH > > Tim > > -- > tcross (at) rapttech dot com dot au > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs > > -- View this message in context: http://www.nabble.com/no-color-syntax-highlighting-in-emacs-over-SSH-tf2355236.html#a6570659 Sent from the Emacs - Help mailing list archive at Nabble.com.