Encoding ASCII color?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tim Murray

    #1

    Encoding ASCII color?

    Hi,
    I am writing in Managed C++ and trying to send an ASCII
    string to a telnet application that supports color. Does
    anyone know how to encode a color for the string that I am
    sending? This is what I have:

    Byte byteMessage []= Encoding::ASCII->GetBytes(messa ge-[color=blue]
    >ToCharArray()) ;[/color]
    m_sock->Send( byteMessage, byteMessage->Length,
    SocketFlags::No ne );

    Where message is a String.

    Thanks,
    Tim
Working...