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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top