Color in a network stream buffer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

H

I want to send text data via a TCPClient objects NetworkStream, that will be interpreted as color text in Telnet hosts Such as Telnet.exe or Putty Telnet for Example

How do I format the byte info in the NetworkStream Buffer to do this

Thank

Ben
 
[Please fix your newsreader to wrap lines properly.]

=?Utf-8?B?QmVuIFJlZXNl?= said:
I want to send text data via a TCPClient objects NetworkStream,
that will be interpreted as color text in Telnet hosts Such as
Telnet.exe or Putty Telnet for Example.

How do I format the byte info in the NetworkStream Buffer to do this?

You need to look into the telnet protocol and its various different
escape sequences for colours. Note that not all terminals will support
all of the different escape sequences - you'd usually use some
negotiation at the start of the session to work out what is supported.
 
Back
Top