color in emacs... when ssh-ing to my FreeBSD box


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers color in emacs... when ssh-ing to my FreeBSD box
# 1  
Old 08-31-2001
color in emacs... when ssh-ing to my FreeBSD box


I'm trying to be able to get color with my SSH sessions (I'm using PuTTY) when using Emacs... but I've been unable to.

Someone told me to change the Terminal-type string to "xterm-color" and I've tried that... but I still can't get any color.

Any and all help will be appreciated.
xyyz
# 2  
Old 08-31-2001
Lets narrow things down: does color work at the command line? (not sure if FreeBSD supports color ls?) Try the following:

echo ^[[34mhello^[[37m

(where the sequence ^[ is produced by hitting ctrl-v then escape)

You should get the word hello printed in blue if your terminal supports color.
# 3  
Old 09-02-2001
Quote:
Originally posted by PxT
Lets narrow things down: does color work at the command line? (not sure if FreeBSD supports color ls?) Try the following:

echo ^[[34mhello^[[37m

(where the sequence ^[ is produced by hitting ctrl-v then escape)

You should get the word hello printed in blue if your terminal supports color.
thanks for your help... and I applogize for my late response...
okay, I did what you told me to do... and yes the word "hello" did appear in blue... and my prompt changed to a very light grey.

mind you ... I did this from my freebsd console in KDE... I dunno if that makes a difference.
xyyz
# 4  
Old 09-03-2001

I use putty to connect to all the Unices at work. I get color on the Slackware boxes (that support it), and my terminal type string is simply set to "xterm" (no quotes). If that doesn't work, try executing (from the console): echo $TERM. Now, set whatever the value of TERM is as your terminal type string in putty. Hope it works!

# 5  
Old 09-04-2001
Maybe you just dont have color enabled in emacs?

I'm not familiar with it myself, but it looks like you could check out this page: http://www.emacswiki.org/cgi-bin/wiki.pl?AnsiColor

for details on turning on the color support.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to use emacs? Also how to open existing emacs files with .cgi format?

Hi All, I am new to this forum and a beginner in unix. Please correct me if I put the question in a wrong way.. How to use emacs editor? Also how to open existing emacs files with .cgi format? I have the following link :- http link i.e. url and path : /abc/xyz.dev/xyz/documents What... (7 Replies)
Discussion started by: swathi123
7 Replies

2. Red Hat

cannot ssh (use NFS) on RHEL box, but can mount external & ssh out of RHEL box

Ok, Im trying to get NFS working on my RHEL 5 box, apparently i can use the box as a client, but not as a server. If it helps i cant ssh into the box (server), but as a client ssh works fine. Ive configured server: /etc/hosts.allow: all : all all :all@all setup my /etc/exports file... (4 Replies)
Discussion started by: drs.grid
4 Replies

3. UNIX for Dummies Questions & Answers

Public Key Authentication over SSH and Sudo-ing Implementation

Hi, We are currently implementing an Identity Management application which has several Unix systems as its target system. A pre-defined connector will be installed to provide connection between the Identity Management application and the Unix target system. The connection will use Public Key... (1 Reply)
Discussion started by: tristanD
1 Replies

4. Shell Programming and Scripting

grep'ing and sed'ing chunks in bash... need help on speeding up a log parser.

I have a file that is 20 - 80+ MB in size that is a certain type of log file. It logs one of our processes and this process is multi-threaded. Therefore the log file is kind of a mess. Here's an example: The logfile looks like: "DATE TIME - THREAD ID - Details", and a new file is created... (4 Replies)
Discussion started by: elinenbe
4 Replies

5. OS X (Apple)

Emacs set-cursor-color in iTerm problem

Hi I'm trying to customise emacs to work within iTerm (I've aliased emacs = emacs -nw so it runs inside my shell) but I can't get the 'set-cursor-color' to work. I have the following in my .emacs file: (set-cursor-color "LightSkyBlue") ... (0 Replies)
Discussion started by: pepperjacl
0 Replies

6. UNIX for Advanced & Expert Users

Access files from prev box after SSH to another box

i'm not much of an advanced unix programmer but I'm trying to write a script to access files on box1 after ssh from box 1 to box2. when ssh is invoked in the script i'm getting logged into box2 and losing complete touch with box1 which is normal i guess. but my main aim with my script is when i... (3 Replies)
Discussion started by: pharos467
3 Replies

7. UNIX for Dummies Questions & Answers

Emacs color syntax highlighting

So... i cant get it to work. I had already posted this but it got deleted. Details: Im running SSH shell on Windows XP, connecting to a server whose term is vt100 (someone asked me that last time) Im trying to get the syntax highlighting in cc mode to work in color, but its black and... (0 Replies)
Discussion started by: viejid
0 Replies

8. Red Hat

ssh-ing to port 80.

i am using redhat 8.0 and trying to connect to my local port 80 to run some HTTP. i know this can easily be done with telnet localhost 80, however telnet is not running, ssh is. ssh localhost -p 80 gives me a "Connection refused" error. i've been trying to find out more information on the web,... (3 Replies)
Discussion started by: effigy
3 Replies
Login or Register to Ask a Question