By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,471 Members | 722 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,471 IT Pros & Developers. It's quick & easy.

Color in a network stream buffer

P: n/a
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
Nov 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
[Please fix your newsreader to wrap lines properly.]

=?Utf-8?B?QmVuIFJlZXNl?= <b_*******@hotmail.com> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #2

P: n/a
[Please fix your newsreader to wrap lines properly.]

=?Utf-8?B?QmVuIFJlZXNl?= <b_*******@hotmail.com> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.