Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing colors of Procomm fields and terminal screen ?

Status
Not open for further replies.

willy113

Programmer
Apr 27, 2004
33
US
ProcommPlus/Aspect questions regarding colors in the ProcommPlus Terminal screen....

1. Can you provide the "index criteria" for the command "terminal colors index|string" ??
- I could not find the index that I would think map out to several color combinations for the terminal screen
in the Aspect help pages or manual ?

2. Can I change individual terminal screen lines or character locations on the terminal screen ?
- I was hoping to at least be able to say capture incoming data on one line, and force a LF + CR to get a new line,then compare it to know output data, and mirror the data back to the terminal display and add some pass/fail & time stamp info to the next line from my program, and then turn the line in appropriate colors like green for pass, etc.

Best Regards, Bill
 
Regarding item 1, I think index would just start at zero and increment for each terminal color named option set you have defined in that tab of the Setup dialog. There is no way to specify just a foreground or background color, for example, if you have to select a named option set in its entirety. Usually it is easiest to do this by loading it by name instead of index.

As for your other item, you can insert the appropriate escape sequences in the string you write to the terminal (using termwrites or a similar command) to turn that line or certain text a particular color. To do this, you would need to know the correct escape sequence to use for your selected emulation. This site:


has information on some of the terminals supported by Procomm, while this site:


has information on the ANSI BBS emulation. Otherwise, you will need to do a Google search to find the necessary escape sequences.


aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top