Skip to content

Commit a4f3a9e

Browse files
committed
fix: redefine getch() for cross-platform compatibility
1 parent ea28e1f commit a4f3a9e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Menu/MainFunctions.h

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#ifdef _WIN32
66
#include <conio.h>
77
#define SYS_CLEAR() system("cls")
8+
#define getch() _getch()
89
#else
910
#include <termios.h>
1011
#include <unistd.h>

0 commit comments

Comments
 (0)