We help IT Professionals succeed at work.

building a service to accessed via telnet client, want colors ?

In building a service to accessed from a telnet client, is there any type of escape codes or ansi codes that the service can send back to the telnet windows that would cause to change the color of the text   foreground and/or background ?

Thank you.
Comment
Watch Question

Hanno P.S.IT Consultant and Infrastructure Architect

Commented:
Hi,

the problem is not the service but the client you use.
E.g. if you use an xterm client type for telnet you can use the usual ANSI escape sequences to perfom these tasks.

Cheers,
JustUNIX
IT Consultant and Infrastructure Architect
Commented:
A comprehensive list of ansi escape sequences can be found here.
for basic security reasons, I would suggest using SSH as the transport instead of telnet...

Author

Commented:
I found the ANIS code late last night, but nothing this complete.  

ArneLovius:  SSH would be best, but I am captured data from a legacy system and that dictates the protocol used.

Thank You.