Forum

Notifications
Clear all

Color detection

0 Posts
2 Users
0 Reactions
236 Views
(@tandrews)
Eminent Member
Joined: 18 years ago
Posts: 18
Topic starter  

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?


   
ReplyQuote
(@bpence)
Member Admin
Joined: 12 months ago
Posts: 1375
 

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.


   
ReplyQuote
(@tandrews)
Eminent Member
Joined: 18 years ago
Posts: 18
Topic starter  

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.


   
ReplyQuote
(@bpence)
Member Admin
Joined: 12 months ago
Posts: 1375
 

Excellent sleuthing. I look forward to seeing the file.


   
ReplyQuote
(@bpence)
Member Admin
Joined: 12 months ago
Posts: 1375
 

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.


   
ReplyQuote
(@tandrews)
Eminent Member
Joined: 18 years ago
Posts: 18
Topic starter  

Yep, that's exactly what Procomm was doing -- mapping bold/reverse to colors.


   
ReplyQuote
Share: