home *** CD-ROM | disk | FTP | other *** search
- {********************************************************************}
- Unit GANSIM{0.99};
- {
- ╔════════════════▌ GANSIM ver 1.00 ▐════════════════╗
- ║ ║
- ║ By ║
- ║ Giuseppe Grasso, ║
- ║ P.D. from Giuseppe Grasso & Blues BrotherS BBS ║
- ║ ║
- ║ You can DownLoad the latest version of GANSIM ║
- ║ on Blues BrotherS's Italian Free Soft Area. ║
- ║ ║
- ║ Call Blues BrotherS BBS, ║
- ║ net 332/15, phone +39.10.390287 ║
- ║ Sysops: Giampaolo Sica, Giuseppe Grasso, Enrica ║
- ║ ║
- ╚═══════════════════════════════════════════════════╝
- }
-
- interface
- {********************************************************************}
- uses
- crt;
- const
- Black =0;
- Blue =1;
- Green =2;
- Cyan =3;
- Red =4;
- Magenta =5;
- Brown =6;
- lGray =7;
- darkGray =8;
- lBlue =9;
- lGreen =10;
- lCyan =11;
- lRed =12;
- lMagenta =13;
- Yellow =14;
- White =15;
- Blink =128;
- nochange =254;
- reset =255;
- var
- AnsiColor:boolean; {if FALSE ignore COLxxx procedures}
- SimModem:boolean; {Simulate, or not simulate, nodem speed}
- ModemSpeed:word; {Modem speed to simulate if SimModem=TRUE}
-
- Function KeyReady:boolean; {Like KeyPressed}
- Function KeyRead:char; {Like ReadKey}
- Procedure Scrivi(s:string); {Like write}
- Procedure Scriviln(s:string); {Like Writeln}
-
- Procedure ColSet(f,b:byte); {Set current color}
- Procedure ColReverse; {Swap Background with Foreground}
- Procedure ColBlink; {Set Blink on}
- Procedure ColHiLight; {Set HiLight}
- Procedure ColReset; {ReSet to normal Colors (Fore:7,Back:0)}
-
- Procedure CLS; {Clear the screen}
- Procedure ClrEoln; {Delete from cursor position to end of line}
-
- Procedure SCP; {Save Cursor Position}
- Procedure RCP; {Restore Cursor Position}
-
- Procedure Cursor(x,y:byte); {Gotoxy}
- Procedure CursorUp(n:byte); {Go UP n rows}
- Procedure CursorDown(n:byte); {Go DOWN n rows}
- Procedure CursorForward(n:byte); {Go FOREARD n collums}
- Procedure CursorBackward(n:byte); {Go BACKWARD n collums}
- Procedure Home; {Go to home position}
- {********************************************************************}