all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* no color syntax highlighting in emacs over SSH
@ 2006-09-29  6:18 DeeplyPipelined
  2006-09-29 12:23 ` Kaloian Doganov
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: DeeplyPipelined @ 2006-09-29  6:18 UTC (permalink / raw)



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!

Thank you,
Ajit.
-- 
View this message in context: http://www.nabble.com/no-color-syntax-highlighting-in-emacs-over-SSH-tf2355236.html#a6559904
Sent from the Emacs - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: no color syntax highlighting in emacs over SSH
  2006-09-29  6:18 no color syntax highlighting in emacs over SSH DeeplyPipelined
@ 2006-09-29 12:23 ` Kaloian Doganov
  2006-09-29 15:13 ` DeeplyPipelined
       [not found] ` <mailman.7601.1159564973.9609.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 9+ messages in thread
From: Kaloian Doganov @ 2006-09-29 12:23 UTC (permalink / raw)
  Cc: Help-gnu-emacs

DeeplyPipelined <ajitkarthik@gmail.com> writes:

    I should also mention that when I use emacs over X on the SSH,
    syntax highlighting works.

What you mean exactly by "using emacs over X on the SSH"?

    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!

Did you tried

  M-x font-lock-mode

on the remote machine (over SSH)?  If you login over SSH and start
Emacs from the remote shell, you're actually starting another instance
of Emacs.  You want font locking, then you have to turn it on for that
instance too.
    

-- 
"Every non-free program has a lord, a master --
and if you use the program, he is your master." --RMS
___________________________________________________________
Ако не отговарям на писмата Ви: http://6lyokavitza.org/mail

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: no color syntax highlighting in emacs over SSH
  2006-09-29  6:18 no color syntax highlighting in emacs over SSH DeeplyPipelined
  2006-09-29 12:23 ` Kaloian Doganov
@ 2006-09-29 15:13 ` DeeplyPipelined
       [not found] ` <mailman.7601.1159564973.9609.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 9+ messages in thread
From: DeeplyPipelined @ 2006-09-29 15:13 UTC (permalink / raw)



Yes, font locking is turned on because I can see formatted fonts in emacs
(bold, underline), but no color. Also, I am able to get color when I use
emacs in an X window over ssh (using ssh -X), but I am not able to get
coloration when I use emacs in  the non-X (TTY) mode.



DeeplyPipelined wrote:
> 
> 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!
> 
> Thank you,
> Ajit.
> 

-- 
View this message in context: http://www.nabble.com/no-color-syntax-highlighting-in-emacs-over-SSH-tf2355236.html#a6566875
Sent from the Emacs - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: no color syntax highlighting in emacs over SSH
       [not found] <mailman.7585.1159531962.9609.help-gnu-emacs@gnu.org>
@ 2006-09-29 15:48 ` Tim X
  2006-09-29 18:48   ` DeeplyPipelined
  2006-09-29 18:54   ` Ajit Mylavarapu
  2006-09-30 17:55 ` Ajit Mylavarapu
  1 sibling, 2 replies; 9+ messages in thread
From: Tim X @ 2006-09-29 15:48 UTC (permalink / raw)


DeeplyPipelined <ajitkarthik@gmail.com> 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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: no color syntax highlighting in emacs over SSH
       [not found] <20803288.182351159542707518.JavaMail.nabble@jubjub.nabble.com>
@ 2006-09-29 15:51 ` Kaloian Doganov
  0 siblings, 0 replies; 9+ messages in thread
From: Kaloian Doganov @ 2006-09-29 15:51 UTC (permalink / raw)
  Cc: help-gnu-emacs

ajitkarthik@gmail.com writes:

    Yes, font locking is turned on because I can see formatted fonts
    in emacs (bold, underline), but no color.

What is the value of the TERM environment variable on the remote
machine?  Try setting it like this:

setenv TERM=xterm

just before starting of Emacs (assuming you're using xterm or
compatible terminal emulator on your local machine).


P.S. Please, reply to the mailing list using the "Reply-to-all"
feature of your mail program.
    

-- 
"Every non-free program has a lord, a master --
and if you use the program, he is your master." --RMS
___________________________________________________________
Ако не отговарям на писмата Ви: http://6lyokavitza.org/mail

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: no color syntax highlighting in emacs over SSH
  2006-09-29 15:48 ` Tim X
@ 2006-09-29 18:48   ` DeeplyPipelined
  2006-09-29 18:54   ` Ajit Mylavarapu
  1 sibling, 0 replies; 9+ messages in thread
From: DeeplyPipelined @ 2006-09-29 18:48 UTC (permalink / raw)



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 <ajitkarthik@gmail.com> 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.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: no color syntax highlighting in emacs over SSH
  2006-09-29 15:48 ` Tim X
  2006-09-29 18:48   ` DeeplyPipelined
@ 2006-09-29 18:54   ` Ajit Mylavarapu
  1 sibling, 0 replies; 9+ messages in thread
From: Ajit Mylavarapu @ 2006-09-29 18:54 UTC (permalink / raw)


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). And once I find 
that out, what should I do?

Thank you,
Ajit.

Tim X wrote:
> DeeplyPipelined <ajitkarthik@gmail.com> 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
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: no color syntax highlighting in emacs over SSH
       [not found] ` <mailman.7601.1159564973.9609.help-gnu-emacs@gnu.org>
@ 2006-09-30  0:57   ` Ilya Zakharevich
  0 siblings, 0 replies; 9+ messages in thread
From: Ilya Zakharevich @ 2006-09-30  0:57 UTC (permalink / raw)


[A complimentary Cc of this posting was sent to
DeeplyPipelined 
<ajitkarthik@gmail.com>], who wrote in article <mailman.7601.1159564973.9609.help-gnu-emacs@gnu.org>:

> Yes, font locking is turned on because I can see formatted fonts in emacs
> (bold, underline), but no color. Also, I am able to get color when I use
> emacs in an X window over ssh (using ssh -X), but I am not able to get
> coloration when I use emacs in  the non-X (TTY) mode.

Your TERM is understood as non-color XTERM.  Set TERM on remote
machine to a color-capable XTERM (may be tricky on Solaris, it has
horrible terminfo database...).

If this fails, you may need to use a custom TERMINFO database.  Get it
from some saner OS, and set $TERMINFO accordingly.  [This assumes that
your Emacs groks TERMINFO.  Do not know whether Solaris builds are
smart enough...]

Hope this helps,
Ilya

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: no color syntax highlighting in emacs over SSH
       [not found] <mailman.7585.1159531962.9609.help-gnu-emacs@gnu.org>
  2006-09-29 15:48 ` Tim X
@ 2006-09-30 17:55 ` Ajit Mylavarapu
  1 sibling, 0 replies; 9+ messages in thread
From: Ajit Mylavarapu @ 2006-09-30 17:55 UTC (permalink / raw)


I have it working now. I installed tramp, and I use my local copy of 
emacs to edit remote files over SSH. It solves many problems.

Thank you all for the help,
Ajit.

DeeplyPipelined wrote:
> 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!
> 
> Thank you,
> Ajit.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-09-30 17:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-29  6:18 no color syntax highlighting in emacs over SSH DeeplyPipelined
2006-09-29 12:23 ` Kaloian Doganov
2006-09-29 15:13 ` DeeplyPipelined
     [not found] ` <mailman.7601.1159564973.9609.help-gnu-emacs@gnu.org>
2006-09-30  0:57   ` Ilya Zakharevich
     [not found] <mailman.7585.1159531962.9609.help-gnu-emacs@gnu.org>
2006-09-29 15:48 ` Tim X
2006-09-29 18:48   ` DeeplyPipelined
2006-09-29 18:54   ` Ajit Mylavarapu
2006-09-30 17:55 ` Ajit Mylavarapu
     [not found] <20803288.182351159542707518.JavaMail.nabble@jubjub.nabble.com>
2006-09-29 15:51 ` Kaloian Doganov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.