This repository has been archived on 2022-05-26. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
calculator/src/getch.h
2022-05-15 21:47:33 +02:00

12 lines
No EOL
301 B
C

#ifndef __GETCH_H
#define __GETCH_H
#ifdef _WIN32
// FIXME: assuming that windows getch behaves the same as linux getch, this should be checked!
#include <conio.h>
#include <windows.h> // used only for virtual terminal configuring for windows default terminal
#else
#include <curses.h>
#endif
#endif