First time here? Check out the FAQ!

Color is not displayed in the textbox of VB

+1 vote
asked by (150 points)
edited by

I was using TeraTerm program which is supporting UART.
Sometimes, I need to communicate with other equipment which supports GPIB at the same time.
TeraTerm does not support GPIB. So, I'changed the debug tool from TeraTerm to VB.
VB supports various functions including GPIB. Textboxes of VB can be used as display screen.

Here is my question:
program in C includes ANSI Color value like expressed "\x1b[32m". This makes character in color indicated. In Teraterm, it was no problem. However, it was different in the textbox of VB. It displayed "[32m" in textbox not the color.

Would you give me some advice to correct it?

1 Answer

0 votes
answered by (100k points)
edited by

If you want to be able to use these ANSI colors you need to define them first. No matter the program or languages used to code, you need to define them at the beginning of the coding document and only then you can use them wherever you want to.


#define STRING "ANSI color code"
commented by (150 points)
Thanks a lot.
I was trying to learn what it is in VB, however, not found it.
I'm curious to know how to be written in VB.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register