If you use the correct escape sequences for the terminal emulation you are using, then the answer is yes. It shouldn't be hard to find these for the ANSI BBS and VT emulations, but I'm not sure how well documented (on the Internet, I don't believe any information of this type is in the help files) it is for the other emulations in Procomm.
The Escape Sequences that Knob talked about are what we use in the Nortel World with the VT-100 Family of Terminal Interfaces. In Nortel we use a HEXTOSTR Command. ( Hexidecimal to String ) to ALTER Colors, Blinks, Etc ! The HEXTOSTR Command Tells the VT-100 how to behave.. Not much help here; but I'll contact some Friends and see what I can Find Out.
To write a string to the terminal, just use the termmsg, termwrites, or termputs command, whichever is most appropriate to your need. Use ^[ to represent an escape character in your strings where necessary.
Oops! I reread the help file for the termmsg command and I didn't notice the first time that termmsg does not support caret (^) sequences, so you'll need to use either termwrites or termputs.
When I tried your string with the termwrites command, I was initially seeing the same output you were. I added an extra left bracket to the command and only TEST was output, but I didn't see any attributes being set on the text. I added an m to the end of the string and this resulted in TEST being displayed in red and flashing. Is that the result you were looking for? Here's the command as it looked when I finished it:
Doggone escape sequences always drive me nuts. I loved trying to interpret what a user was seeing by reading the contents of the monitor window, character by character, over the phone and then looking in an escape sequence table. Such fun!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.