2023-12-01 22:39:38 +03:00
|
|
|
#ifndef __GETCH_H__
|
|
|
|
#define __GETCH_H__
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#include <conio.h>
|
|
|
|
#define getch _getch
|
2023-12-17 00:41:42 +03:00
|
|
|
inline int getchInit(void) { return 0; }
|
2023-12-01 22:39:38 +03:00
|
|
|
#else
|
|
|
|
int getch(void);
|
2023-12-17 03:07:48 +03:00
|
|
|
void getchInit(void);
|
|
|
|
void getchResetTerminalStateHandler(int sig);
|
|
|
|
void getchResetTerminalState(void);
|
2023-12-01 22:39:38 +03:00
|
|
|
#endif /* _WIN32 */
|
|
|
|
|
|
|
|
#endif /* __GETCH_H__ */
|