| Other: ANSI Codes for HyperTerminal | |||
|
|||
|   |
|
ANSI codes (for Picbasic Pro) Does your output to HyperTerminal look rather boring. Black text on a white background and continuously scrolling off the screen, many times before you even get a chance to read it. Maybe this will help. This is an include file that will allow you to change text and background colors, clear the screen, move the cursor, and several other functions. It can greatly improve the appearance of your programs output. It is written for use with a USART and Hserout commands. It does not work with Serout or Serout2.
ForegroundLightDark Commands: Each command is implemented as a macro, so unless you actually use that command in your program it doesn't use up any code space. Each instance of the command will use some space, dependant on the command, and where it is located in the program. By using the built in library of "Picbasic Pro" it utilizes the same bank and page switching techniques used by PBP itself. Making it pretty worry free as far as programming goes. To use the commands, just include the ansi.inc file in your main program like this INCLUDE "ANSI.INC" Then start each line with an @ symbol, followed by the command name and parameters if needed. @ ForColor yellow ; Set foreground (text) color to yellow @ BackColor blue ; Set background color to blue @ Blink ; Blinking text @ ClearScr ; Clear Screen If you're using MPASM all command names and colors are case sensitive. For PM they are not. |
|   |
| Downloads for Other: ANSI Codes for HyperTerminal | ||
ansi.inc | ||
File Description:Include file for Picbasic Pro , use with HyperTerminal | ||
979 3.62 KB | Uploaded: 5/16/2004 | |
|
Article Rated: 8.33 (3 votes) Rate this Article |
| Return to Category | Return To Main Index |
| Poster | Thread |
|---|
![]() |



File Description:
979
3.62 KB 