This commit is contained in:
watrabi
2025-09-18 17:55:52 -04:00
commit 977f1ff4b8
15030 changed files with 17324420 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#if defined(_WIN32)
#include <conio.h> /* getche() */
#elif defined(__S3E__)
#else
#include "Getche.h"
char getche()
{
struct termios oldt,
newt;
char ch;
tcgetattr( STDIN_FILENO, &oldt );
newt = oldt;
newt.c_lflag &= ~( ICANON | ECHO );
tcsetattr( STDIN_FILENO, TCSANOW, &newt );
ch = getchar();
tcsetattr( STDIN_FILENO, TCSANOW, &oldt );
return ch;
}
#endif