I'm trying to create an operating system with Assembly and C (not C++) and I have some files that write text to the screen. However, I need to detect if a key is pressed on the keyboard. I am using Windows 10 and Visual Studio Code as the code editor.
I tried using iostream
's std::cin.get()
but gcc returns the error fatal error: iostream: No such file or directory
.
I tried with conio.h
's getch()
and _getch()
but gcc returns fatal error: conio.h: No such file or directory
.
The OS is in 64-bit protected mode.