home *** CD-ROM | disk | FTP | other *** search
- ;----------------------------------------------------------------------------
- ; Copyright(C) 1996, The AEGiS Corporation
- ;----------------------------------------------------------------------------
- ;
- ; PROCEDURE Debug()
- ;
- ; Simple debug procedure. Saves screen state (color, cursor location)
- ; moves to the first line & column, writes your debug value, and restores
- ; screen state.
- ;
- ;----------------------------------------------------------------------------
- #lib
- Declare Procedure Debug(String DebugValue)
-
- ;----------------------------------------------------------------------------
- Procedure Debug(string DebugValue)
-
- int x
- int y
- int c
-
- x = getx()
- y = gety()
- c = curcolor()
- ansipos 1,1
- print "@X0F" + DebugValue," "
- ansipos x,y
- color c
-
- Endproc
-