TwiceAsNice  2019-02-18
Macros | Functions
ConsFunc.h File Reference

Macros

#define MAX_DECIMAL_BUFFER_SIZE   30
 
#define _Pause
 
#define _PauseWithExit
 

Functions

void ConsoleInitialize (void)
 
void ConsoleEnd (void)
 
void ConsoleClear (void)
 
void SetCursorPosition (unsigned int xPos, unsigned int yPos)
 
void OemIoWriteString (const char *pStr)
 
void PlxPrintf (const char *format,...)
 

Macro Definition Documentation

◆ _Pause

#define _Pause
Value:
do \
{ \
PlxPrintf(" -- Press any key to continue --"); \
Plx_getch(); \
PlxPrintf("\r \r"); \
} \
while(0)

◆ _PauseWithExit

#define _PauseWithExit
Value:
do \
{ \
PlxPrintf(" -- Press any key to continue or ESC to exit --"); \
if (Plx_getch() == 27) \
{ \
PlxPrintf("\r \n"); \
ConsoleEnd(); \
exit(0); \
} \
PlxPrintf("\r \r"); \
} \
while(0)

◆ MAX_DECIMAL_BUFFER_SIZE

#define MAX_DECIMAL_BUFFER_SIZE   30

Function Documentation

◆ ConsoleClear()

void ConsoleClear ( void  )

◆ ConsoleEnd()

void ConsoleEnd ( void  )

◆ ConsoleInitialize()

void ConsoleInitialize ( void  )

◆ OemIoWriteString()

void OemIoWriteString ( const char *  pStr)

◆ PlxPrintf()

void PlxPrintf ( const char *  format,
  ... 
)

◆ SetCursorPosition()

void SetCursorPosition ( unsigned int  xPos,
unsigned int  yPos 
)