VKontakte.DJ
forum traveling
 

Celestial Software

...better by design

Home Support SSH Client Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Color detection (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Color detection
#1450
Color detection 17 Years, 9 Months ago  
We're evaluating AT 4.51 as a replacement for Procomm Plus 32 (aka 4.7) for two reasons: 1) support for keep alives and 2) support for SSH.

Under Global options I have "Autodetect ANSI color settings" set for Prompt (I also tried Yes), but when I connect to a host that sends color sequences, AT shows black and white instead of color. Yet if I connect to the same host using Procomm, the colors are what I'd expect.

I'm running VT100 emulation on both.

What am I doing wrong?
tandrews (User)
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#1451
Re: Color detection 17 Years, 9 Months ago  
The most probable answer is that the host is not sending color to you, at least not to AbsoluteTelnet. The host application probably checks the value of the TERM variable and decides whether your client is capable of displaying color. A real vt100 would not be able to display color, for example. The host may choose not to send it.

To be sure, check the value of the TERM variable after logging in using Absolute and Procomm. What are the values under each?

You might also try switching Absolute to something like 'xterm' which supports colors.

Let me know if any of this helps or if you need further guidance.
bpence (Admin)
Admin
Posts: 1404
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#1452
Re: Color detection 17 Years, 9 Months ago  
Logging in under AT and Procomm both result in Linux (Red Hat ES 3) reporting TERM=vt100.

I did a "raw" capture under Procomm of the text coming in and the escape codes are there. If I cat the captured file under Procomm, I get the colors (as I would expect). If I cat the file under AT, it only does black-and-white.

Under AT, if I go to Options->Properties->VT Options->Terminal Type->xterm and then cat the file, I get the same results (black-and-white).

I will send you attachments via private email.
tandrews (User)
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#1453
Re: Color detection 17 Years, 9 Months ago  
Excellent sleuthing. I look forward to seeing the file.
bpence (Admin)
Admin
Posts: 1404
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#1454
Re: Color detection 17 Years, 9 Months ago  
Todd,

I got the file and I've looked at it. There is no color data in the file, but there are codes to turn on/off BOLD and REVERSE text. It's possible that you have Procomm configured to display BOLD and REVERSE as a different colors. AbsoluteTelnet uses a bold font to display bold text and inverted colors to display reversed text.

If you have access to the code for the host system, you could actually change it to issue *real* color codes.
bpence (Admin)
Admin
Posts: 1404
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#1455
Re: Color detection 17 Years, 8 Months ago  
Yep, that's exactly what Procomm was doing -- mapping bold/reverse to colors.
tandrews (User)
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
Go to top